motion
Version:
motion - moving development forward
61 lines (60 loc) • 2.52 kB
JSON
{
"_args": [
[
"netrc@https://registry.npmjs.org/netrc/-/netrc-0.1.4.tgz",
"/Users/nw/flint/packages/flint"
]
],
"_from": "netrc@0.1.4",
"_id": "netrc@0.1.4",
"_inCache": true,
"_location": "/netrc",
"_phantomChildren": {},
"_requested": {
"name": "netrc",
"raw": "netrc@https://registry.npmjs.org/netrc/-/netrc-0.1.4.tgz",
"rawSpec": "https://registry.npmjs.org/netrc/-/netrc-0.1.4.tgz",
"scope": null,
"spec": "https://registry.npmjs.org/netrc/-/netrc-0.1.4.tgz",
"type": "remote"
},
"_requiredBy": [
"/surge"
],
"_resolved": "https://registry.npmjs.org/netrc/-/netrc-0.1.4.tgz",
"_shasum": "6be94fcaca8d77ade0a9670dc460914c94472444",
"_shrinkwrap": null,
"_spec": "netrc@https://registry.npmjs.org/netrc/-/netrc-0.1.4.tgz",
"_where": "/Users/nw/flint/packages/flint",
"author": {
"email": "cameron@nujii.com",
"name": "Cameron Bytheway"
},
"bugs": {
"url": "https://github.com/CamShaft/netrc/issues"
},
"dependencies": {},
"description": "Parse netrc files",
"devDependencies": {
"mocha": "~1.9.0",
"should": "~1.2.2"
},
"homepage": "https://github.com/CamShaft/netrc#readme",
"keywords": [
"netrc"
],
"license": "MIT",
"main": "index.js",
"name": "netrc",
"optionalDependencies": {},
"readme": "netrc [](https://travis-ci.org/camshaft/netrc)\n=====\n\nParse netrc files\n\nUsage\n-----\n\n```js\nvar netrc = require('netrc');\n\nvar myNetrc = netrc();\n\nconsole.log(myNetrc['github.com'])\n// { login: 'my-oauth-token',\n// password: 'x-oauth-basic' }\n\nmyNetrc['github.com'].login = 'my-new-oauth-token';\n\nnetrc.save(myNetrc);\n```\n\nAPI\n---\n\n### netrc([file])\n\nLoads a `.netrc` file, defaulting to `~/.netrc`\n\n### netrc.parse(string)\n\nParses netrc formatted string into an object:\n\n```json\n{\n \"machine1.example.com\": {\n \"login\": \"my-login\",\n \"password\": \"my-password\"\n },\n \"machine2.example.com\": {\n \"login\": \"my-other-login\",\n \"password\": \"my-other-password\"\n }\n}\n```\n\n### netrc.format(object)\n\nFormats a netrc object into a valid string\n\n### netrc.save(object)\n\nPersists a netrc object to `~/.netrc`\n\n## Tests\n\n```\n$ npm test\n```\n",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git+https://github.com/CamShaft/netrc.git"
},
"scripts": {
"test": "mocha"
},
"version": "0.1.4"
}