0.0.1 • Published 12 years ago
npm-server v0.0.1
npm-server
local npm registry w/ real registry fallback
Features
- Install packages from a local dir.
- Fallback to real registry for foreign modules and everything else.
Install
$ npm install npm-server -gUsage
Usage: npm-server [options] [dir]
Options:
-h, --help output usage information
-V, --version output the version number
-H, --host <value> server host [localhost]
-p, --port <value> server port [6070]
-e, --expire <sec> cache expire time [60]Example
Run the registry server:
$ npm-serverThen install packages, instructing npm to use our registry:
$ npm --registry=http://localhost:6070/ install colorsOr, you can also use it permanently:
$ npm set registry http://localhost:6070/WARNING
This project is a DEVELOPMENT tool. It does not aim to be 100% compliant with the npm registry. The only command implemented is install. The rest of npm commands like publish, adduser, owner etc. will be forwarded to the REAL npm registry, so use with caution. You've been warned.
License
MIT
0.0.1
12 years ago