bower
Version:
The browser package manager
56 lines (55 loc) • 2.98 kB
JSON
{
"name": "bower-config",
"version": "1.3.0",
"description": "The Bower config reader and writer.",
"author": {
"name": "Twitter"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/bower/config.git"
},
"main": "lib/Config",
"homepage": "http://bower.io",
"engines": {
"node": ">=0.8.0"
},
"dependencies": {
"graceful-fs": "^4.0.0",
"mout": ">=0.9.0 <1.0.0",
"optimist": "^0.6.1",
"osenv": "^0.1.3",
"untildify": "2.1.0"
},
"devDependencies": {
"expect.js": "^0.3.1",
"glob": "^4.5.3",
"grunt": "^0.4.5",
"grunt-cli": "^0.1.13",
"grunt-contrib-jshint": "^0.10.0",
"grunt-contrib-watch": "^0.6.1",
"grunt-simple-mocha": "^0.4.0",
"load-grunt-tasks": "^2.0.0",
"mkdirp": "^0.5.0",
"mocha": "~1.12.0",
"node-uuid": "^1.4.3",
"q": "^1.2.0",
"rimraf": "^2.3.2"
},
"scripts": {
"test": "grunt test"
},
"files": [
"lib"
],
"readme": "# bower-config [](http://travis-ci.org/bower/config)\n\n> The Bower config (`.bowerrc`) reader and writer.\n\nThe config spec can be read [here](https://docs.google.com/document/d/1APq7oA9tNao1UYWyOm8dKqlRP2blVkROYLZ2fLIjtWc/).\n\n\n## Install\n\n```sh\n$ npm install --save bower-config\n```\n\n\n## Usage\n\n#### .load(overwrites)\n\nLoads the bower configuration from the configuration files.\n\nConfiguration is overwritten (after camelcase normalisation) with `overwrites` argument.\n\nThis method overwrites following environment variables:\n\n- `HTTP_PROXY` with `proxy` configuration variable\n- `HTTPS_PROXY` with `https-proxy` configuration variable\n- `NO_PROXY` with `no-proxy` configuration variable\n\nIt also clears `http_proxy`, `https_proxy`, and `no_proxy` environment variables.\n\nTo restore those variables you can use `restore` method.\n\n#### restore()\n\nRestores environment variables overwritten by `.load` method.\n\n#### .toObject()\n\nReturns a deep copy of the underlying configuration object.\nThe returned configuration is normalised.\nThe object keys will be camelCase.\n\n\n#### #create(cwd)\n\nObtains a instance where `cwd` is the current working directory (defaults to `process.cwd`);\n\n```js\nvar config = require('bower-config').create();\n// You can also specify a working directory\nvar config2 = require('bower-config').create('./some/path');\n```\n\n#### #read(cwd, overrides)\n\nAlias for:\n\n```js\nvar configObject = (new Config(cwd)).load(overrides).toJson();\n```\n\n## License\n\nReleased under the [MIT License](http://www.opensource.org/licenses/mit-license.php).\n",
"readmeFilename": "README.md",
"gitHead": "5e751e114270fd02d3fddd4af1e18c32bf8abcc2",
"bugs": {
"url": "https://github.com/bower/config/issues"
},
"_id": "bower-config@1.3.0",
"_shasum": "cc10fd72a358051a025715bf0b9a29b35bbb6bbd",
"_from": "bower-config@>=1.3.0 <2.0.0"
}