Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

npmsh

MarkTiedemann10WTFPL0.3.1

Shell for running npm cmds and scripts.

npm, npmsh, sh, cmd, cmds, script, scripts

readme

npmsh

Shell for running npm cmds and scripts.

Installation

npm i -g npmsh

Quickstart

# Start the shell
$ npmsh
# => Now you can run npm cmds and scripts
# without the `npm ` or `npm run ` prefix

Built-in cmds:

λ start
# => npm start

Aliases:

λ i
# => npm i

package.json scripts:

λ lint
# => npm run lint

Chaining:

λ build && test
# => npm run build && npm test

Flags:

λ serve --open
# => npm run serve -- --open

Reserved cmds:

λ clear
# => clear the screen

λ reload
# => reload the package.json scripts

λ exit
# => exit the screen

Also has tab completion!

License

WTFPL – Do What the F*ck You Want to Public License.

Made with :heart: by @MarkTiedemann.