Skip to content

thomd/npm-scripter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

manage npm-scripts from the command line

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published