lazy-cache-cli v0.2.3
lazy-cache-cli
CLI for adding a utils.js
file with lazy-cached requires.
Install
Install globally with npm
$ npm install -g lazy-cache-cli
CLI
$ lazy
# no semicolons
$ lazy -s
Running the lazy
command will do two things:
- Add
utils.js
withvar utils = require('lazy-cache')(require);
and a list of dependencies from package.json - Add the
utils.js
filepath to thefiles
property in package.json
Learn
If a utils.js
or lib/utils.js
file already exists, lazy-cache-cli will try to learn any aliases used in that file, so that the next time you generate a utils.js
file, it will try to use the aliases if any "known" module names are used.
Related projects
You might also be interested in these projects:
- lazy-cache: Cache requires to be lazy-loaded when needed. | homepage
- lint-deps: CLI tool that tells you when dependencies are missing from package.json and offers you a… more | homepage
Contributing
This document was generated by verb, please don't edit directly. Any changes to the readme must be made in .verb.md. See Building Docs.
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Building docs
Generate readme and API documentation with verb:
$ npm install -g verb verb-readme-generator && verb
Running tests
Install dev dependencies:
$ npm install -d && npm test
Author
Jon Schlinkert
License
Copyright © 2016, Jon Schlinkert. Released under the MIT license.
This file was generated by verb, v0.9.0, on May 30, 2016.