dtesler / medium-to-markdown

Converts Medium posts to markdown.
MIT License
115 stars 35 forks source link

Added Bin to package.json [https://docs.npmjs.com/files/package.json#bin] #8

Closed pratikpc closed 2 years ago

pratikpc commented 4 years ago

A lot of packages have one or more executable files that they’d like to install into the PATH. npm makes this pretty easy (in fact, it uses this feature to install the “npm” executable.)

To use this, supply a bin field in your package.json which is a map of command name to local file name. On install, npm will symlink that file into prefix/bin for global installs, or ./node_modules/.bin/ for local installs.

https://docs.npmjs.com/files/package.json#bin

mxro commented 2 years ago

👍 This seems like a great idea to improve the package and make it easier to use!