0.7.0 • Published 7 years ago

npm-package-config v0.7.0

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

This is a little package to get the configuration of your package that you can override using "npm config set ...". Normally, this information is only accessible when your script is invoked by "npm run". NPM is not very friendly with this wonderful feature. There is no API, and no '--json' option to 'npm config list'. Usage:     const npc = require('npm-package-config');     const result = npc.list(package_name, options); New since version 0.5.0:     const result = npc.listSync(package_name, options);     const result = npc.listAsync(package_name, options); Where:     "package_name" : (optional) Name of the package     "options" : (optional) An object which provide options by key/value pairs.     "result" : The result of the function. Options:     "async" : ("npc.list" only) When 'true', the function will return a Promise. When 'false', the function will return the result. Default is 'false'.     "Promise" : Provides the Promise constructor. Default is 'global.Promise'.     "module" : Provides the Node.js module object used to resolve files. Default is the parent module of 'npm-package-config'.

0.7.0

7 years ago

0.6.0

7 years ago

0.5.0

8 years ago

0.4.0

8 years ago

0.3.2

8 years ago

0.3.1

8 years ago

0.3.0

8 years ago

0.2.0

8 years ago

0.1.10

8 years ago

0.1.9

8 years ago

0.1.7

8 years ago

0.1.6

9 years ago

0.1.5

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago