You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

readme.md 655B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # npm-conf [![Build Status](https://travis-ci.org/kevva/npm-conf.svg?branch=master)](https://travis-ci.org/kevva/npm-conf)
  2. > Get the npm config
  3. ## Install
  4. ```
  5. $ npm install npm-conf
  6. ```
  7. ## Usage
  8. ```js
  9. const npmConf = require('npm-conf');
  10. const conf = npmConf();
  11. conf.get('prefix')
  12. //=> //=> /Users/unicorn/.npm-packages
  13. conf.get('registry')
  14. //=> https://registry.npmjs.org/
  15. ```
  16. To get a list of all available `npm` config options:
  17. ```bash
  18. $ npm config list --long
  19. ```
  20. ## API
  21. ### npmConf()
  22. Returns the `npm` config.
  23. ### npmConf.defaults
  24. Returns the default `npm` config.
  25. ## License
  26. MIT © [Kevin Mårtensson](https://github.com/kevva)