Wondering what’s next for npm?Check out our public roadmap! »

    This package has been deprecated

    Author message:

    this package has been reintegrated into npm and is now out of date with respect to npm

    npmconf

    2.1.3 • Public • Published

    npmconf

    THIS PACKAGE IS DEPRECATED

    **This package's functionality has been reintegrated directly into npm. There have been many changes made to npm's configuration since the last version of this package was published. It should not be considered a source of truth for npm configuration any longer, and npm itself is the best tool to use to manage its configuration.

    Do not use this package.

    If you are writing a new Node.js program, and want configuration functionality similar to what npm has, but for your own thing, then I'd recommend using rc, which is probably what you want.

    USAGE

    var npmconf = require('npmconf')
     
    // pass in the cli options that you read from the cli
    // or whatever top-level configs you want npm to use for now.
    npmconf.load({some:'configs'}, function (er, conf) {
      // do stuff with conf
      conf.get('some', 'cli') // 'configs'
      conf.get('username') // 'joebobwhatevers'
      conf.set('foo', 'bar', 'user')
      conf.save('user', function (er) {
        // foo = bar is now saved to ~/.npmrc or wherever
      })
    })

    Install

    npm i npmconf

    DownloadsWeekly Downloads

    69,753

    Version

    2.1.3

    License

    ISC

    Unpacked Size

    52.3 kB

    Total Files

    26

    Last publish

    Collaborators

    • avatar