🚀 Launch Week Day 4:Introducing the Alert Details Page: A Better Way to Explore Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

list-deps

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

list-deps

List the dependencies in the package.json of the current project.

latest
Source
npmnpm
Version
0.2.2
Version published
Maintainers
1
Created
Source

list-deps NPM version Build Status

List the dependencies in the package.json of the current project.

Install with npm

npm i list-deps --save

Usage

var deps = require('list-deps');
//=> {"load-pkg":"^1.1.1"}

deps('devDependencies');
//=> {"helper-related":"^0.1.0","mocha":"*","should":"*"}
  • load-pkg: Load the package.json in the base of the user's current project.
  • cwd: Node.js util for easily getting the current working directory of a project based on package.json or the given path.
  • resolve-dep: Return an array of resolved filepaths for require-able local or named npm modules. Wildcard (glob) patterns may be used.

Running tests

Install dev dependencies.

npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

Author

Jon Schlinkert

License

Copyright (c) 2015 Jon Schlinkert
Released under the MIT license

This file was generated by verb-cli on March 05, 2015.

Keywords

dep

FAQs

Package last updated on 05 Mar 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts