JSPM

  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q52871F

Command-line tool to check for dependencies that are not listed in package.json, and optionally add them. Also tells you when packages that aren't used anywhere are listed in package.json.

Package Exports

  • lint-deps

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (lint-deps) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

lint-deps NPM version

Command-line tool to check for dependencies that are not listed in package.json, and optionally add them.

Also tells you if packages are listed in package.json but aren't used anywhere.

Install

npm

 npm i -g lint-deps

Usage

In the command line:

deps

If packages are missing, you'll see a prompt like this:

image

If you type y + enter:

image

If you want dependencies, just hit enter, or do -e for devDependencies:

image

Done.

Docs

Currently this tool is very limited, does not have any options or settings, and is really experimental. Also, node_modules is omitted from the search (and result set) and the following glob patterns are used to find files to scan:

['**/*.js', 'bin/**', '!**/{tmp,temp}/**'];

All Node.js built-ins are excluded from the result set (e.g. path, fs etc.)

Author

Jon Schlinkert

License

Copyright (c) 2014 Jon Schlinkert, contributors. Released under the MIT license