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.

52 lines
2.1 KiB

{
"name": "npmconf",
"version": "0.0.25",
"description": "The config thing npm uses",
"main": "npmconf.js",
"directories": {
"test": "test"
},
"dependencies": {
"config-chain": "~1.1.1",
"inherits": "~1.0.0",
"once": "~1.1.1",
"mkdirp": "~0.3.3",
"osenv": "0.0.3",
"nopt": "2",
"semver": "~1.1.0",
"ini": "~1.1.0"
},
"devDependencies": {},
"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",
"bugs": {
"url": "https://github.com/isaacs/npmconf/issues"
},
"_id": "npmconf@0.0.25",
"dist": {
"shasum": "8e958a7da1dd087c70a427b27d372c565b782662"
},
"_from": "npmconf@0.0.25",
"_resolved": "https://registry.npmjs.org/npmconf/-/npmconf-0.0.25.tgz"
}