SharonGrossman/get-dependencies


A simple way to get the dependencies of a package.json

License: MIT

Language: JavaScript


get-dependencies BuildStatus BuildStatus

Install

as a CLI tool

npm install --g get-dependencies

Programatically

npm install get-dependencies --save

Usage

CLI

Usage: get-dependencies [options] [path]

  Get the dependencies of a package.json

  Options:

    -h, --help           output usage information
    -V, --version        output the version number
    -m, --module <name>  Get the package.json of a npm module
    -u, --url <url>      Get the package.json from a url
    -j, --json           Print the dependencies as a JSON
    -c, --copy           Copy the dependencies to the clipboard

Programatically

var getDeps = require('get-dependencies');

getDeps.getByFile('/path/package.json')
  .then(function (result) {
    // result is an array of the dependencies
  });
  
getDeps.getByName('package-name')
  .then(function (result) {
    // result is an array of dependencies of the npm package
  });
  
getDeps.getByUrl('http://url.to/package.json')
  .then(function (result) {
    // result is an array of dependencies of the npm package
  });

License

MIT © Sharon Grossman

Project Statistics

Sourcerank 3
Repository Size 6.84 KB
Stars 2
Forks 0
Watchers 1
Open issues 0
Dependencies 4
Contributors 2
Tags 2
Created
Last updated
Last pushed

Top Contributors See all

Sharon Grossman Noam Okman

Packages Referencing this Repo

get-dependencies
A simple way to get the dependencies of a package.json
Latest release 1.1.0 - Updated - 2 stars

Recent Tags See all

v1.1.0 May 10, 2017
v1.0.0 August 17, 2016

Something wrong with this page? Make a suggestion

Last synced: 2016-08-12 18:12:35 UTC

Login to resync this repository