manage npm-scripts from the command line
JavaScript
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib
test
.gitignore
.npmignore
.travis.yml
README.md
index.js
package.json

README.md

npm-scripter

Build Status Known Vulnerabilities

A simple npm helper for the command-line to manage npm-scripts.

It's for the lazy programmer because editing json files is terrible.

Install

npm install -g npm-scripter

Get help & examples with

nps -h

Usage

List all npm-scripts with (basically the same as npm run)

nps

List npm-script foo with

nps foo

Create a new npm-script with

nps foo 'echo "bar"'

This creates an entry in package.json like this:

  "scripts": {
    "foo": "echo \"bar\""
  }

Edit an existing npm-script (only the commands part) in $EDITOR with

nps foo -e

Delete npm-script foo with

nps foo -d

Delete all npm-scripts with

nps -d