pkg-entry
expose
jsnext:main
ormain
properties from object, defaults toindex.js
Install
npm install --save pkg-entry
Usage
; const main = main: './main.js' ;; // ./main.js const jsnext = 'jsnext:main': './jsnext.js' main: './jsnext.es5.js' ;; // ./jsnext.js const defaults = {};; // index.js
API
pkgEntry(pkg)
pkg
Required
Type: Object
JSON from package.json
.
License
MIT © Vladimir Starkov