1.0.3 • Published 8 years ago

hierarchize v1.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

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.

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago