npm-server

0.0.1 • Public • Published

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 -g

Usage


  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-server

Then install packages, instructing npm to use our registry:

$ npm --registry=http://localhost:6070/ install colors

Or, 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

Readme

Keywords

none

Package Sidebar

Install

npm i npm-server

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • stagas