Skip to content

nodef/extra-npm

Repository files navigation

Common utility commands for npm packages.
📦 NPM, :smiley_cat: GitHub, :scroll: Files, :blue_book: Wiki.

Do you want to?

  • Clone NPM package to local or GitHub?
  • Initialize Node.js reporitory on GitHub?
  • Push changes to both Git and NPM?
  • Get root package path?
  • Search for packages, with special fields?
  • Validate Node.js package fields?
  • View registry info about a package?
  • Locate a program or locally installed node module executable?

This is an extension of npm with some commonly used commands. Some improvements are still needed here. You can install this with npm install -g extra-npm.

Stability: Experimental.


enpm [command] [options]
# all existing commands of npm supported

# push change to git, npm
$ enpm push "commit message"

# clone all versions of "package" to local
$ enpm clone -a package

# install "package"
$ enpm install package


Index

Command Action
clone Clones NPM package to local or remote.
help Prints usage details of a command.
init Initializes a Node.js repository.
push Pushes changes to both Git and NPM.
rev-parse Picks out and massages parameters.
search Searches for packages.
validate Validates Node.js package field.
view Views registry info about a package.
which Locates a program or locally installed node module executable.


References