GT2/GT2-Android/node_modules/options/package.json

86 lines
4.2 KiB
JSON

{
"_args": [
[
{
"raw": "options@>=0.0.5",
"scope": null,
"escapedName": "options",
"name": "options",
"rawSpec": ">=0.0.5",
"spec": ">=0.0.5",
"type": "range"
},
"/home/jdaugherty/work/GT2/GT2-Android/node_modules/ws"
]
],
"_from": "options@>=0.0.5",
"_id": "options@0.0.6",
"_inCache": true,
"_location": "/options",
"_npmUser": {
"name": "einaros",
"email": "einaros@gmail.com"
},
"_npmVersion": "1.4.21",
"_phantomChildren": {},
"_requested": {
"raw": "options@>=0.0.5",
"scope": null,
"escapedName": "options",
"name": "options",
"rawSpec": ">=0.0.5",
"spec": ">=0.0.5",
"type": "range"
},
"_requiredBy": [
"/ws"
],
"_resolved": "https://registry.npmjs.org/options/-/options-0.0.6.tgz",
"_shasum": "ec22d312806bb53e731773e7cdaefcf1c643128f",
"_shrinkwrap": null,
"_spec": "options@>=0.0.5",
"_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/ws",
"author": {
"name": "Einar Otto Stangvik",
"email": "einaros@gmail.com",
"url": "http://2x.io"
},
"bugs": {
"url": "https://github.com/einaros/options.js/issues"
},
"dependencies": {},
"description": "A very light-weight in-code option parsers for node.js.",
"devDependencies": {
"mocha": "latest"
},
"directories": {},
"dist": {
"shasum": "ec22d312806bb53e731773e7cdaefcf1c643128f",
"tarball": "https://registry.npmjs.org/options/-/options-0.0.6.tgz"
},
"engines": {
"node": ">=0.4.0"
},
"gitHead": "ff53d0a092c897cb95964232a96fe17da65c11af",
"homepage": "https://github.com/einaros/options.js#readme",
"main": "lib/options",
"maintainers": [
{
"name": "einaros",
"email": "einaros@gmail.com"
}
],
"name": "options",
"optionalDependencies": {},
"readme": "# options.js #\n\nA very light-weight in-code option parsers for node.js.\n\n## Usage ##\n\n``` js\nvar Options = require(\"options\");\n\n// Create an Options object\nfunction foo(options) {\n var default_options = {\n foo : \"bar\"\n };\n \n // Create an option object with default value\n var opts = new Options(default_options);\n \n // Merge options\n opts = opts.merge(options);\n \n // Reset to default value\n opts.reset();\n \n // Copy selected attributes out\n var seled_att = opts.copy(\"foo\");\n \n // Read json options from a file. \n opts.read(\"options.file\"); // Sync\n opts.read(\"options.file\", function(err){ // Async\n if(err){ // If error occurs\n console.log(\"File error.\");\n }else{\n // No error\n }\n });\n \n // Attributes defined or not\n opts.isDefinedAndNonNull(\"foobar\");\n opts.isDefined(\"foobar\");\n}\n\n```\n\n\n## License ##\n\n(The MIT License)\n\nCopyright (c) 2012 Einar Otto Stangvik <einaros@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git://github.com/einaros/options.js.git"
},
"scripts": {
"test": "make test"
},
"version": "0.0.6"
}