Table of Contents

IT:AD:Node.JS:HowTo:Use NPM

Use search:

C:\Users\Sky>npm search ncurses
npm http GET https://registry.npmjs.org/-/all/since?stale=update_after&startkey=
1350874738000
npm http 200 https://registry.npmjs.org/-/all/since?stale=update_after&startkey=
1350874738000
NAME       DESCRIPTION                     AUTHOR              DATE
blessings  A port of python blessings.     =jussi-kalliokoski  2012-08-18 15:01
ncurses    An ncurses binding for node.js  =mscdex             2012-10-11 04:34

C:\Users\Sky>

License

C:\Users\Sky>npm view ncurses licenses

{ type: 'MIT', 
  url: 'http://github.com/mscdex/node-ncurses/raw/master/LICENSE' }

C:\Users\Sky>

Dependencies

npm view ncurses dependencies

Repository

npm view ncurses repository.type

All

C:\Users\Sky>npm view ncurses

{ name: 'ncurses',
  description: 'An ncurses binding for node.js',
  'dist-tags': { latest: '0.3.1' },
  versions:
   [ '0.0.1',
     '0.0.2',
     '0.1.0',
     '0.2.0',
     '0.2.1',
     '0.2.2',
     '0.2.4',
     '0.3.0',
     '0.3.1' ],
  maintainers: 'mscdex <mscdex@mscdex.net>',
  author: 'Brian White <mscdex@mscdex.net>',
  repository:
   { type: 'git',
     url: 'http://github.com/mscdex/node-ncurses.git' },
  time:
   { '0.0.1': '2011-01-15T22:44:57.455Z',
     '0.0.2': '2011-01-15T22:44:57.455Z',
     '0.1.0': '2011-01-15T22:44:57.455Z',
     '0.2.0': '2011-04-10T04:32:51.141Z',
     '0.2.1': '2011-12-04T13:43:47.968Z',
     '0.2.2': '2011-12-11T04:11:04.974Z',
     '0.2.4': '2011-12-31T17:47:25.327Z',
     '0.3.0': '2012-10-05T01:25:24.290Z',
     '0.3.1': '2012-10-11T04:34:15.542Z' },
  version: '0.3.1',
  scripts: { preinstall: 'node-gyp rebuild' },
  main: './index',
  engines: { node: '>0.6.0' },
  keywords:
   [ 'console',
     'ncurses',
     'curses',
     'graphics' ],
  licenses:
   { type: 'MIT',
     url: 'http://github.com/mscdex/node-ncurses/raw/master/LICENSE' },
  dist:
   { shasum: 'd77a5940190edbac215db4075b927c954c874a71',
     tarball: 'http://registry.npmjs.org/ncurses/-/ncurses-0.3.1.tgz' },
  directories: {} }


C:\Users\Sky>

Global v Local Directories

Always installs locally, in a NODE_MODULES folder.

Searches locally, and if not found, recusively investigates parent folders for NODES_MODULES folders…until found (or not).