{"_id":"fdocopt","_rev":"502036","name":"fdocopt","description":"> File decorator for [docopt] option parser.","dist-tags":{"latest":"0.1.3"},"maintainers":[{"name":"valeriangalliat","email":"vava720@gmail.com"}],"time":{"modified":"2024-06-24T21:35:38.000Z","created":"2014-10-05T14:31:06.066Z","0.1.3":"2015-05-25T12:22:49.379Z","0.1.2":"2014-10-05T19:57:22.300Z","0.1.0":"2014-10-05T14:31:06.066Z"},"users":{},"author":{"name":"Valérian Galliat","url":"http://val.codejam.info/"},"repository":{"type":"git","url":"git+https://github.com/valeriangalliat/fdocopt.git"},"versions":{"0.1.3":{"name":"fdocopt","version":"0.1.3","homepage":"https://github.com/valeriangalliat/fdocopt","bugs":{"url":"https://github.com/valeriangalliat/fdocopt/issues"},"license":"Unlicense","author":{"name":"Valérian Galliat","url":"http://val.codejam.info/"},"repository":{"type":"git","url":"git+https://github.com/valeriangalliat/fdocopt.git"},"scripts":{"test":"eslint index.js"},"dependencies":{"docopt":"0.*"},"devDependencies":{"eslint":"0.*"},"gitHead":"d38838e33e1d24765af2b6be87ff58dacec50deb","description":"> File decorator for [docopt] option parser.","_id":"fdocopt@0.1.3","_shasum":"9ae4a2ff8a074732f7289c229fe6983e3d6a98ae","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.3","_npmUser":{"name":"valeriangalliat","email":"val@codejam.info"},"maintainers":[{"name":"valeriangalliat","email":"vava720@gmail.com"}],"dist":{"shasum":"9ae4a2ff8a074732f7289c229fe6983e3d6a98ae","tarball":"http://registry-npm.ywwl.com/fdocopt/download/fdocopt-0.1.3.tgz","integrity":"sha512-VUvPwOzEqDvPO02C9ZNxQVwTN7UQpIj23GdtqiT3KLL6Iw49Av0aKKskXbL/ctHkT1h1A9Zum+cQJDJe1fH9XQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDUZRHPUuSOYnOtqvj/O2k/dFEBv6HyTsgoI6xnVSsrfAIgEUc8Faz57CNzGcjzHiKMY3NM2GkVStUjG1ZnRXAQ9a8="}],"size":2096,"noattachment":false,"key":"/fdocopt/-/fdocopt-0.1.3.tgz"},"directories":{},"publish_time":1432556569379,"_cnpm_publish_time":1432556569379},"0.1.2":{"name":"fdocopt","version":"0.1.2","homepage":"https://github.com/valeriangalliat/fdocopt","bugs":{"url":"https://github.com/valeriangalliat/fdocopt/issues"},"license":{"type":"Unlicense","url":"http://unlicense.org/"},"author":{"name":"Valérian Galliat","url":"http://val.codejam.info/"},"repository":{"type":"git","url":"https://github.com/valeriangalliat/fdocopt.git"},"scripts":{"test":"eslint index.js"},"dependencies":{"docopt":"0.*"},"devDependencies":{"eslint":"0.*"},"gitHead":"dd6c4f0750c20b7ac942f4c633b6c7eeb5ba9c66","description":"fdocopt =======","_id":"fdocopt@0.1.2","_shasum":"d7c3400f1089fc3ae766322ab68c8872844e8bfc","_from":".","_npmVersion":"2.1.3","_nodeVersion":"0.10.32","_npmUser":{"name":"valeriangalliat","email":"vava720@gmail.com"},"maintainers":[{"name":"valeriangalliat","email":"vava720@gmail.com"}],"dist":{"shasum":"d7c3400f1089fc3ae766322ab68c8872844e8bfc","tarball":"http://registry-npm.ywwl.com/fdocopt/download/fdocopt-0.1.2.tgz","integrity":"sha512-WPyIqJn2EQ4ZSPmuhLIqXe3roJU9+jMt0S9GfdENJ1wtK1Vzfu+m4oixHVofgtS7fuN6ter9CkkFrE3CdJ39Pw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBjqW+i0Ne4G5GzNLeG/OZYnKhdFTkgRK4dg/pTBUliUAiBeYoznx0S6aSVzXrsP1elqnF3EkxxsNw8cPzKvYsk8tg=="}],"size":2053,"noattachment":false,"key":"/fdocopt/-/fdocopt-0.1.2.tgz"},"directories":{},"publish_time":1412539042300,"_cnpm_publish_time":1412539042300},"0.1.0":{"name":"fdocopt","version":"0.1.0","author":{"name":"Valérian Galliat","url":"http://val.codejam.info/"},"homepage":"https://github.com/valeriangalliat/fdocopt","bugs":{"url":"https://github.com/valeriangalliat/fdocopt/issues"},"repository":{"type":"git","url":"https://github.com/valeriangalliat/fdocopt.git"},"dependencies":{"docopt":"0.*"},"devDependencies":{"eslint":"0.*"},"scripts":{"test":"eslint index.js"},"gitHead":"63b6a875b6b14749b82a8074ed529c1b0cd7f288","description":"fdocopt =======","_id":"fdocopt@0.1.0","_shasum":"0d28e141b2e250fa9b5a5e21b1c0a2de115f7a20","_from":".","_npmVersion":"2.1.3","_nodeVersion":"0.10.32","_npmUser":{"name":"valeriangalliat","email":"vava720@gmail.com"},"maintainers":[{"name":"valeriangalliat","email":"vava720@gmail.com"}],"dist":{"shasum":"0d28e141b2e250fa9b5a5e21b1c0a2de115f7a20","tarball":"http://registry-npm.ywwl.com/fdocopt/download/fdocopt-0.1.0.tgz","integrity":"sha512-MSXb8960+nHNVoeytKZA1D4Np2F8hCnZLiRPFQZEFYbAT7Ixmgr0xPNIjvtQlmy72wfFAA0v+korqDfHAzqkRw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCANRdZATiZN/IfTCQ/7T1wFcF4A0FWUsOX/tYgzPLFnAIhAIXDVLB7ByKk0iU/P44WM+laagv3Rv+TJQc0kRkn6z7G"}],"size":1293,"noattachment":false,"key":"/fdocopt/-/fdocopt-0.1.0.tgz"},"directories":{},"publish_time":1412519466066,"_cnpm_publish_time":1412519466066}},"readme":"# fdocopt [![npm version](http://img.shields.io/npm/v/fdocopt.svg?style=flat-square)](https://www.npmjs.org/package/fdocopt)\n\n> File decorator for [docopt] option parser.\n\n[docopt]: https://github.com/docopt/docopt.coffee\n\nDescription\n-----------\n\nIt's not easy to work with docopt in pure JavaScript since, unlike\nPython and CoffeeScript, there's no simple way to define a multiline\nstring to contain the usage string.\n\nThis package provides a decorator for docopt to solve this problem.\n\n```js\n/*\nUsage: hello [options] <world>\n\nArguments:\n  <world>  Hello world!\n\nOptions:\n  -h, --help  Show this help.\n  --version   Show version.\n  --happy     Be happy.\n*/\n\nvar docopt = require('fdocopt')();\n```\n\nBy default it will decorate the global docopt instance, so the above is\nthe same as:\n\n```js\nvar docopt = require('fdocopt')(require('docopt').docopt);\n```\n\nThen, pass the documented filename instead of the usage string:\n\n```js\nvar args = docopt(__filename);\n```\n\nYou can also use the internal functions to extract the comment block\nfrom a file or a code buffer:\n\n```js\nvar doc = require('fdocopt').extract(__filename);\nvar doc = require('fdocopt').extractBuffer('/** Usage: hello */');\n```\n","_attachments":{},"homepage":"https://github.com/valeriangalliat/fdocopt","bugs":{"url":"https://github.com/valeriangalliat/fdocopt/issues"},"license":"Unlicense"}