Require List
Required children tree.
Installation
npm install -g require-list
Usage
Command
rlist [javascript file path in entry-point]
Example
/tmp/a.js
var b = ;var test = ;
/tmp/b.js
;moduleexports = 'b';
/tmp/test/index.js
;
/tmp/test/c.js
module { return 'c' };
$ rlist /tmp/a.js
/tmp/a.js
├── b.js
| └── test/c.js
└── test/index.js
└── test/c.js
Module API
Example
var rlist = ; console;console; console;console; // --output--// rlist(filepath)// { '/tmp/b.js': { '/tmp/test/c.js': {} },// '/tmp/test/index.js': { '/tmp/test/c.js': {} } } } // rlist.string(filepath)// /tmp/a.js// ├── b.js// | └── test/c.js// └── test/index.js// └── test/c.js
Contribution
- Fork it ( https://github.com/iyu/require-list/fork )
- Create a feature branch
- Commit your changes
- Rebase your local changes against the master branch
- Run test suite with the
npm test; npm run jshint
command and confirm that it passes - Create new Pull Request