list-deps

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

Usage no npm install needed!

<script type="module">
  import listDeps from 'https://cdn.skypack.dev/list-deps';
</script>

README

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":"*"}

Related projects

  • 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.