summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/npmconf/package.json
blob: f6727d98ffd2e75de47d2cb377c1155a74385dbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
  "name": "npmconf",
  "version": "1.0.1",
  "description": "The config thing npm uses",
  "main": "npmconf.js",
  "directories": {
    "test": "test"
  },
  "dependencies": {
    "config-chain": "~1.1.8",
    "inherits": "~2.0.0",
    "ini": "^1.2.0",
    "mkdirp": "~0.3.3",
    "nopt": "2",
    "once": "~1.3.0",
    "osenv": "0.0.3",
    "semver": "2",
    "uid-number": "0.0.5"
  },
  "devDependencies": {
    "tap": "~0.4.0"
  },
  "scripts": {
    "test": "tap test/*.js"
  },
  "repository": {
    "type": "git",
    "url": "git://github.com/isaacs/npmconf"
  },
  "keywords": [
    "npm",
    "config",
    "config-chain",
    "conf",
    "ini"
  ],
  "author": {
    "name": "Isaac Z. Schlueter",
    "email": "i@izs.me",
    "url": "http://blog.izs.me"
  },
  "license": "BSD",
  "readme": "# npmconf\n\nThe config thing npm uses\n\nIf you are interested in interacting with the config settings that npm\nuses, then use this module.\n\nHowever, if you are writing a new Node.js program, and want\nconfiguration functionality similar to what npm has, but for your\nown thing, then I'd recommend using [rc](https://github.com/dominictarr/rc),\nwhich is probably what you want.\n\nIf I were to do it all over again, that's what I'd do for npm.  But,\nalas, there are many systems depending on many of the particulars of\nnpm's configuration setup, so it's not worth the cost of changing.\n\n## USAGE\n\n```javascript\nvar npmconf = require('npmconf')\n\n// pass in the cli options that you read from the cli\n// or whatever top-level configs you want npm to use for now.\nnpmconf.load({some:'configs'}, function (er, conf) {\n  // do stuff with conf\n  conf.get('some', 'cli') // 'configs'\n  conf.get('username') // 'joebobwhatevers'\n  conf.set('foo', 'bar', 'user')\n  conf.save('user', function (er) {\n    // foo = bar is now saved to ~/.npmrc or wherever\n  })\n})\n```\n",
  "readmeFilename": "README.md",
  "gitHead": "7da0322e33d6116378f6a2206d8b8fa113c06e4b",
  "bugs": {
    "url": "https://github.com/isaacs/npmconf/issues"
  },
  "homepage": "https://github.com/isaacs/npmconf",
  "_id": "npmconf@1.0.1",
  "_shasum": "3503d12c6585395b0d8378d76e2d4a2453a23328",
  "_from": "npmconf@latest"
}