1.0.5 • Published 5 years ago

what-i-actually-need v1.0.5

Weekly downloads
4
License
ISC
Repository
github
Last release
5 years ago

logo Scans your code to find all the require() to tell you what you actually need for the node project. Uses a single file as the starting point then does depth first search. Optional -- It can also update your package.json after to only include the needed modules under dependencies.

Usage

install

$ npm i what-i-actually-need -g

run

Run the following in a node project. By default it uses index.js as the entry point to start the scan.

$ what-i-actually-need

example output:

-- Running What-I-Actually-Need ---

index.js
--> node-sass
--> css-modules-require-hook
--> babel-register

server.js
--> nconf
--> log4js
--> http
--> https
--> fs
--> path

--------------------
12 dependencies are actually needed. There are currently 51 dependencies in package.json.
--------------------

Run the 'what-i-actually-need' command with '--run' flag to update package.json.

Options

--entry (Default: index.js)

Entry point of your node based project, it will start the scan from this file.

--run

To update the package.json dependencies after the scan is complete.

--help

See the usage docs

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago