Skip to content

Commit

Permalink
feat(bin): add nps bin
Browse files Browse the repository at this point in the history
This makes it easier to use the package as a globally
installed binary.

Ref #28
  • Loading branch information
Kent C. Dodds committed Jul 29, 2016
1 parent 715f740 commit f01ab0d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,17 @@ be installed as one of your project's `devDependencies`:
npm install --save-dev p-s
```

### global installation

You can install this module globally also:

```
npm install --global p-s
```

From here you can use `p-s` on the command line via one of the installed aliases: `p-s`, `package-scripts`, or `nps`.
In the future, this may support autocomplete capabilities. Check out #28 for updates on this.

## Getting started

If you're already using npm scripts, you can get up and going really quickly
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
},
"bin": {
"p-s": "./dist/bin/p-s.js",
"package-scripts": "./dist/bin/p-s.js"
"package-scripts": "./dist/bin/p-s.js",
"nps": "./dist/bin/p-s.js"
},
"files": [
"dist"
Expand Down

0 comments on commit f01ab0d

Please sign in to comment.