global-packages
List global node packages
Last updated 9 years ago by leo .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install global-packages 
SYNC missed versions from official npm registry.

global-packages

Build Status XO code style Slack Channel

List global Node packages easily.

Usage

Simply install the package:

npm install --save global-packages

After that, load it:

const globalPackages = require('global-packages')

let packages

try {
  packages = await globalPackages()
} catch (err) {
  console.error(err)
  return
}

console.log(packages)

This is how the output will look like:

[
  {
    name: 'args',
    linked: true,
    path: '/usr/local/lib/node_modules/args'
  },
  {
    name: 'now',
    linked: false,
    path: '/usr/local/lib/node_modules/now'
  },
  {
    name: 'serve',
    linked: false,
    path: '/usr/local/lib/node_modules/serve'
  },
  ...
]

Contribute

  1. Fork this repository to your own GitHub account and then clone it to your local device
  2. Link the package to the global module directory: npm link
  3. Transpile the source code and watch for changes: npm start
  4. Within the module you want to test your local development instance of global-packages, just link it to the dependencies: npm link global-packages and load it!

Author

Leo Lamprecht (@notquiteleo) - â–²ZEIT

Current Tags

  • 1.0.2                                ...           latest (9 years ago)

5 Versions

  • 1.0.2                                ...           9 years ago
  • 1.0.1                                ...           9 years ago
  • 1.0.0                                ...           9 years ago
  • 0.1.1                                ...           10 years ago
  • 0.1.0                                ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 5
Dependencies (3)
Dev Dependencies (2)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |