Skip to content

weflex/node-hierarchize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hierarchize(1)

hierarchize the node_modules distribution of your project

NPM version Build status Dependency Status Downloads

Why this tool

The npm3 would do flat the node_modules and doesnt support nested feature as the issue#9809:

@othiym23: If you want nested modules on disk, you can use npm@2, which is in LTS mode now, and will continue to receive support for critical issues, security fixes, backwards-compatible dependency updates, and registry compatibility for probably about as long as it's being included in Node LTS releases.

But the ugly flatten tree does make tracing your dependencies be very hard when you were to debug some of them. Hence that WeFlex team builds this tool to generate the npm-shrinkwrap.json from the package.json of your project.

Enjoy this tool by yourself :)

Usage

hierarchize(1) - hierarchize the node_modules distribution in your project

Usage:

  hierarchize [project path]

Options:

  -d | --dev        : contains devDependencies
  -h | -? | --help  : print help

Here we have an example command for starting user:

$ hierarchize ./  # hierarchize the current project
$ hierarchize ./path/to/your/other/project # hierarchize specific project
$ rm -rf node_modules && npm install

For more human readablity and usage, we still symlink a command named: nest-your-node-modules which is an alias for hierarchize.

Installation

$ npm install hierarchize -g

License

MIT Licensed @ WeFlex, Org.

About

Hierarchize the node_modules distribution of your project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published