@pnpm/npm-conf
Get the npm config
Last updated 2 years ago by zkochan .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install @pnpm/npm-conf 
SYNC missed versions from official npm registry.

@pnpm/npm-conf Build Status

Get the npm config

Install

$ pnpm add @pnpm/npm-conf

Usage

const npmConf = require('@pnpm/npm-conf');

const conf = npmConf();

conf.get('prefix')
//=> //=> /Users/unicorn/.npm-packages

conf.get('registry')
//=> https://registry.npmjs.org/

To get a list of all available npm config options:

$ npm config list --long

API

npmConf()

Returns the npm config.

npmConf.defaults

Returns the default npm config.

License

MIT © Kevin Mårtensson

Current Tags

  • 2.1.0                                ...           latest (2 years ago)

12 Versions

  • 2.1.0                                ...           2 years ago
  • 2.0.4                                ...           2 years ago
  • 2.0.3                                ...           2 years ago
  • 2.0.2                                ...           2 years ago
  • 2.0.1                                ...           2 years ago
  • 2.0.0                                ...           3 years ago
  • 1.0.5                                ...           3 years ago
  • 1.0.3                                ...           3 years ago
  • 1.0.4                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 11
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (8)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |