{"_id":"opted","_rev":"5-6dd25c42bd01e08373f73f1fea8c6aa8","name":"opted","description":"Stringify an object to command line options","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"opted","version":"1.0.0","description":"Stringify an object to command line options","main":"lib/opted.js","scripts":{"test":"grunt"},"repository":{"type":"git","url":"https://github.com/tandrewnichols/opted.git"},"keywords":["options","params","flags","arguments","args","parameters","cli","command","line"],"author":{"name":"Andrew Nichols","email":"tandrewnichols@gmail.com","url":"www.tandrewnichols.me"},"license":"MIT","bugs":{"url":"https://github.com/tandrewnichols/opted/issues"},"homepage":"https://github.com/tandrewnichols/opted","devDependencies":{"coffee-script":"^1.9.3","grunt":"^0.4.5","grunt-contrib-clean":"^0.6.0","grunt-contrib-jshint":"^0.11.2","grunt-contrib-watch":"^0.6.1","grunt-mocha-test":"^0.12.7","grunt-open":"^0.2.3","grunt-simple-istanbul":"0.0.1","grunt-travis-matrix":"0.0.5","indeed":"^1.0.6","jshint-stylish":"^2.0.1","mocha":"^2.2.5","mocha-given":"^0.1.3","proxyquire":"^1.6.0","sinon":"^1.15.4","task-master":"^2.2.1"},"dependencies":{"lodash":"^3.10.0"},"gitHead":"40f97683f6ef18ec2ba3d12c8a8da1bc98f110b5","_id":"opted@1.0.0","_shasum":"84b81b1b753b8f060735ef7e8f27b4e552e97226","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"tandrewnichols","email":"tandrewnichols@gmail.com"},"maintainers":[{"name":"tandrewnichols","email":"tandrewnichols@gmail.com"}],"dist":{"shasum":"84b81b1b753b8f060735ef7e8f27b4e552e97226","tarball":"https://registry.npmjs.org/opted/-/opted-1.0.0.tgz","integrity":"sha512-9Y/p1fiOhy3iPe1vdoF757gb82G7gKE2FejaYUxeYq8G8WIG5Wfzf95H+38ufv+xlv1SRjyazEf8nPiFt8AOaA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID4TVwKrFbZqisiknE6730Kni9NBpGGXr5hxZxShaeURAiEAk9qd0JbtguE8RJCuEjoE1CZzY8a4SFbdOVTUHMx/HtA="}]}},"1.0.1":{"name":"opted","version":"1.0.1","description":"Stringify an object to command line options","main":"lib/opted.js","scripts":{"test":"grunt","codeclimate":"codeclimate-test-reporter < coverage/lcov.info","travis":"grunt ci"},"repository":{"type":"git","url":"git+https://github.com/tandrewnichols/opted.git"},"keywords":["options","params","flags","arguments","args","parameters","cli","command","line"],"author":{"name":"Andrew Nichols","email":"tandrewnichols@gmail.com","url":"www.tandrewnichols.me"},"license":"MIT","bugs":{"url":"https://github.com/tandrewnichols/opted/issues"},"homepage":"https://github.com/tandrewnichols/opted","devDependencies":{"codeclimate-test-reporter":"^0.4.1","coffee-script":"^1.12.4","eslint-codeframe-formatter":"^1.0.2","grunt":"^1.0.1","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.0.0","grunt-contrib-jshint":"^0.11.2","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^19.0.0","grunt-mocha-test":"^0.13.2","grunt-open":"^0.2.3","grunt-shell":"^2.1.0","grunt-simple-istanbul":"^3.0.3","grunt-travis-matrix":"^1.0.0","mocha":"^3.2.0","mocha-given":"^0.1.3","should":"^11.2.1","task-master":"^2.3.0"},"dependencies":{"lodash":"^4.17.4"},"engines":{"node":">=4"},"gitHead":"58c5cc99da326a126a4d37fdb978d092d4cb2b5f","_id":"opted@1.0.1","_shasum":"73dfaaac5ebffcd2b9080ea9a7fdd95406fd0739","_from":".","_npmVersion":"3.8.9","_nodeVersion":"7.7.1","_npmUser":{"name":"tandrewnichols","email":"tandrewnichols@gmail.com"},"dist":{"shasum":"73dfaaac5ebffcd2b9080ea9a7fdd95406fd0739","tarball":"https://registry.npmjs.org/opted/-/opted-1.0.1.tgz","integrity":"sha512-y0G8nijiHVaPxQfm/04JKrKCMYETTEdJz6pCG1jOG39y5r3asS9d87hWGOV5JrhIHQ8097caMU1JpgHzILxzWw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDIKUlopf/pshAR1+2buWN/HwWAYTTPeypE7XQCLobG7AiBQ/g9NYl8XUElnb+szWeqCyu5jIij/s9KNmfSejrsHIA=="}]},"maintainers":[{"name":"tandrewnichols","email":"tandrewnichols@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/opted-1.0.1.tgz_1489205009248_0.07765584741719067"}},"1.0.2":{"name":"opted","version":"1.0.2","description":"Stringify an object to command line options","main":"lib/opted.js","scripts":{"test":"grunt","codeclimate":"codeclimate-test-reporter < coverage/lcov.info","travis":"grunt ci"},"repository":{"type":"git","url":"git+https://github.com/tandrewnichols/opted.git"},"keywords":["options","params","flags","arguments","args","parameters","cli","command","line"],"author":{"name":"Andrew Nichols","email":"tandrewnichols@gmail.com","url":"www.tandrewnichols.me"},"license":"MIT","bugs":{"url":"https://github.com/tandrewnichols/opted/issues"},"homepage":"https://github.com/tandrewnichols/opted","devDependencies":{"codeclimate-test-reporter":"^0.4.1","coffee-script":"^1.12.4","eslint-codeframe-formatter":"^1.0.2","grunt":"^1.0.1","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.0.0","grunt-contrib-jshint":"^0.11.2","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^19.0.0","grunt-mocha-test":"^0.13.2","grunt-open":"^0.2.3","grunt-shell":"^2.1.0","grunt-simple-istanbul":"^3.0.3","grunt-travis-matrix":"^1.0.0","mocha":"^3.2.0","mocha-given":"^0.1.3","should":"^11.2.1","task-master":"^2.3.0"},"dependencies":{"lodash":"^4.17.4"},"engines":{"node":">=4"},"gitHead":"c7ca1bffe6ed18493e6f9e62cd698e72672d2e09","_id":"opted@1.0.2","_shasum":"094e7ad9d0c0fc2bb384b4d8a507e278ead557c9","_from":".","_npmVersion":"3.8.9","_nodeVersion":"7.7.1","_npmUser":{"name":"tandrewnichols","email":"tandrewnichols@gmail.com"},"dist":{"shasum":"094e7ad9d0c0fc2bb384b4d8a507e278ead557c9","tarball":"https://registry.npmjs.org/opted/-/opted-1.0.2.tgz","integrity":"sha512-uEvunmdmKcSFiBSmnY2E9E/HbghO5yc1J0yNmq7T18YkAJeWNlo33e6VYKkRK4eudVrpvvlLdemAeAuL6rZxjQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGfkmQIas77fcrsSORdKo4Eo9qQauiFt8IIsOMJbVip8AiEA6Y8z0YIij1dx7iXVZPmTjiU62bf0aZMVa1smVH42QQ0="}]},"maintainers":[{"name":"tandrewnichols","email":"tandrewnichols@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/opted-1.0.2.tgz_1489205244987_0.6787131221499294"}}},"readme":"[![Build Status](https://travis-ci.org/tandrewnichols/opted.png)](https://travis-ci.org/tandrewnichols/opted) [![downloads](http://img.shields.io/npm/dm/opted.svg)](https://npmjs.org/package/opted) [![npm](http://img.shields.io/npm/v/opted.svg)](https://npmjs.org/package/opted) [![Code Climate](https://codeclimate.com/github/tandrewnichols/opted/badges/gpa.svg)](https://codeclimate.com/github/tandrewnichols/opted) [![Test Coverage](https://codeclimate.com/github/tandrewnichols/opted/badges/coverage.svg)](https://codeclimate.com/github/tandrewnichols/opted) [![dependencies](https://david-dm.org/tandrewnichols/opted.png)](https://david-dm.org/tandrewnichols/opted)\n\n# opted\n\nStringify an object to command line options\n\n## Installation\n\n`npm install --save opted`\n\n## Usage\n\nOpted is _not_ a command line option parser. Rather, it is a library for stringifying an object into a list of command line arguments. E.g.\n\n```js\nvar opted = require('opted');\nvar args = opted({ foo: 'bar' });\nconsole.log(args); // ['--foo', 'bar']\n```\n\n## Types of flags\n\n### Long\n\nOptions are [kebab-cased](https://lodash.com/docs#kebabCase) and prefixed with '--'.\n\n```js\nconsole.log( opted({ foo: 'bar' }) ); // ['--foo', 'bar']\nconsole.log( opted({ fooBar: 'baz' }) ); // ['--foo-bar', 'baz']\n```\n\n### Short\n\nOptions that have single letter abbreviations can also be used.\n\n```js\nconsole.log( opted({ f: 'bar' }) ); // ['-f', 'bar']\n```\n\n### Boolean\n\nOptions that are simple \"on\", but have no value, can be set to `true`. Setting a flag to false, will add 'no' to the beginning.\n\n```js\nconsole.log( opted({ bananas: true }) ); // ['--bananas']\nconsole.log( opted({ bananas: false }) ); // ['--no-bananas']\n```\n\n### Equal style\n\nOptions that include an equal sign will keep the equal sign.\n\n```js\nconsole.log( opted({ 'name=', 'Andrew' }) ); // ['--name=Andrew']\n```\n\n### List\n\nMultiple options for a single flag can be passed in an array.\n\n```js\nconsole.log( opted({ member: ['Bob', 'Larry'] }) ); // ['--member', 'Bob', '--member', 'Larry']\n```\n\n## But wait, the tool I need to pass args to is some bizarre abomination like \"find\" that uses single dashes...\n\nNo problem. Just enable crazy-arg mode by passing true as the second parameter.\n\n```js\nconsole.log( opted({ hello: 'world' }, true) ); // ['-hello', 'world']\n```\n\n## Contributing\n\nPlease see [the contribution guidelines](CONTRIBUTING.md).\n","maintainers":[{"name":"tandrewnichols","email":"tandrewnichols@gmail.com"}],"time":{"modified":"2022-06-23T01:05:39.198Z","created":"2015-07-21T02:29:35.118Z","1.0.0":"2015-07-21T02:29:35.118Z","1.0.1":"2017-03-11T04:03:29.878Z","1.0.2":"2017-03-11T04:07:26.961Z"},"homepage":"https://github.com/tandrewnichols/opted","keywords":["options","params","flags","arguments","args","parameters","cli","command","line"],"repository":{"type":"git","url":"git+https://github.com/tandrewnichols/opted.git"},"author":{"name":"Andrew Nichols","email":"tandrewnichols@gmail.com","url":"www.tandrewnichols.me"},"bugs":{"url":"https://github.com/tandrewnichols/opted/issues"},"license":"MIT","readmeFilename":"README.md"}