0.2.3 • Published 8 years ago

lazy-cache-cli v0.2.3

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

lazy-cache-cli NPM version NPM downloads

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:

  1. Add utils.js with var utils = require('lazy-cache')(require); and a list of dependencies from package.json
  2. Add the utils.js filepath to the files 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:

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.