require-statements
Generators require statements from
package.json
.
Install
$ npm install --save require-statements
Usage
var requireStatements = ; ; // ^ Would read `./package.json` and return require statements for dependencies. console;/*var camelcase = require('camelcase');var meow = require('meow');*/ console;/*import camelcase from 'camelcase';import meow from 'meow';*/
API
requireStatements([flag][path])
path
Type: string
Path to the package.json
defaults to ./package.json
flag
Type: string
--import
for import statements instead.
License
MIT © Hemanth.HM