Lance Shi
Lance Shi

Reputation: 1187

How does npm package generate cmd line file

When we install Bower or Grunt via npm, we can use the bower or grunt command line tool. Looking inside, it seems to have generated a .cmd file for Windows and (probably, because I haven't looked into it) a .bach file for Unix based system.

I looked at the source code in Github, but haven't got a clue. How does those npm projects generate the cmd batch file which supports both kind of OSes?

Upvotes: 1

Views: 519

Answers (1)

user4466350
user4466350

Reputation:

Are you looking for this repo ?

https://github.com/ForbesLindesay/cmd-shim

Upvotes: 1

Related Questions