From 961d72670b216eff5501655178937de1868a6e10 Mon Sep 17 00:00:00 2001 From: Pratik Chowdhury Date: Tue, 1 Sep 2020 10:15:16 +0530 Subject: [PATCH] Added Bin to package.json [https://docs.npmjs.com/files/package.json#bin] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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](https://docs.npmjs.com/files/package.json#bin) --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 932c337..60b3943 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "0.0.3", "description": "import a medium URL and convert it to markdown", "main": "index.js", + "bin": "./index.js", "scripts": { "convert": "node index.js", "test": "echo \"Error: no test specified\" && exit 1",