{"_id":"@2fd/command","_rev":"16-713e1085cc9ca867fdf004eca350ba4e","name":"@2fd/command","dist-tags":{"latest":"1.1.3"},"versions":{"0.1.0":{"name":"@2fd/command","version":"0.1.0","keywords":["command"],"author":{"name":"Fede Ramirez","email":"i@2fd.me"},"license":"MIT","_id":"@2fd/command@0.1.0","maintainers":[{"name":"2fd","email":"i@2fd.me"}],"homepage":"https://github.com/2fd/command#readme","bugs":{"url":"https://github.com/2fd/command/issues"},"dist":{"shasum":"b44ca19debfbe8a97052d66fed9ada40c023ea5e","tarball":"https://registry.npmjs.org/@2fd/command/-/command-0.1.0.tgz","integrity":"sha512-IPc7FZRftjoHfB6IDpun0EbmCcPjOa34id2NOKMnnssdeSE06fMIhecBh7g1dpNy5DM32UFvINUxM6oEKDxpPQ==","signatures":[{"sig":"MEUCIFkUQ7XGpUMcjqH+GR6hLG8zMkwP+TLWLXe0U1lVCitsAiEAhenOfxc45vGXk8CcHQFnUir0eY8mj7DAl7oVjLiNASo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"b44ca19debfbe8a97052d66fed9ada40c023ea5e","gitHead":"b059da00ce665c52bf4b54126482c40f0f96a8aa","scripts":{"test":"mocha"},"_npmUser":{"name":"2fd","email":"i@2fd.me"},"repository":{"url":"git+https://github.com/2fd/command.git","type":"git"},"_npmVersion":"3.8.8","description":"Modular command line tool","_nodeVersion":"4.3.2","dependencies":{},"devDependencies":{"chai":"^3.5.0","mocha":"^2.4.5"},"_npmOperationalInternal":{"tmp":"tmp/command-0.1.0.tgz_1462163206681_0.6949807375203818","host":"packages-12-west.internal.npmjs.com"},"directories":{}},"0.2.0":{"name":"@2fd/command","version":"0.2.0","keywords":["command"],"author":{"name":"Fede Ramirez","email":"i@2fd.me"},"license":"MIT","_id":"@2fd/command@0.2.0","maintainers":[{"name":"2fd","email":"i@2fd.me"}],"homepage":"https://github.com/2fd/command#readme","bugs":{"url":"https://github.com/2fd/command/issues"},"dist":{"shasum":"b7b64bb742e512f54e948ecbbfae56a61c97c79e","tarball":"https://registry.npmjs.org/@2fd/command/-/command-0.2.0.tgz","integrity":"sha512-Pn4y5lKqCIaLdXYS5ULyMwlM8XVIN22gXTXaOTjpfbt81NcAxZY1/lJloKOLmJqzwx4yIIrXUT63d9DQ20BGMQ==","signatures":[{"sig":"MEYCIQDT3yYmqOvYKmu58ks2crdp7Fl8GFZKbG4lahi85l/VvgIhANvO4tdz+0X4Hg6FwfyCiY0XNSHAruqj94UxwN2cFqwk","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"b7b64bb742e512f54e948ecbbfae56a61c97c79e","gitHead":"9d57cd7d0f930c8eec23a550b7dbd0e85d3cf8ce","scripts":{"test":"mocha"},"_npmUser":{"name":"2fd","email":"i@2fd.me"},"repository":{"url":"git+https://github.com/2fd/command.git","type":"git"},"_npmVersion":"3.8.6","description":"Modular command line tool","_nodeVersion":"6.0.0","dependencies":{},"devDependencies":{"chai":"^3.5.0","mocha":"^2.4.5"},"_npmOperationalInternal":{"tmp":"tmp/command-0.2.0.tgz_1462421202859_0.6078196004964411","host":"packages-16-east.internal.npmjs.com"},"directories":{}},"0.3.0":{"name":"@2fd/command","version":"0.3.0","keywords":["command"],"author":{"name":"Fede Ramirez","email":"i@2fd.me"},"license":"MIT","_id":"@2fd/command@0.3.0","maintainers":[{"name":"2fd","email":"i@2fd.me"}],"homepage":"https://github.com/2fd/command#readme","bugs":{"url":"https://github.com/2fd/command/issues"},"dist":{"shasum":"ec65674472e5878438c350278979b55d57cdc363","tarball":"https://registry.npmjs.org/@2fd/command/-/command-0.3.0.tgz","integrity":"sha512-uPiIibCmWJfUlNoLVNMRaU/lNpixt2i+9+k2KiVeptzKRr6CSQf0uAP/c5ng9GlLvhngRXBZ9u1OI4THPKOyew==","signatures":[{"sig":"MEUCIQCic6O6dRZZIH1c2KoSf0sqfKDyHT/dxVMsPIJEEWNsoAIgcSuJaHDjYc5AxQXbxAXvijNKy8DmyLURooTATulf0P0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"ec65674472e5878438c350278979b55d57cdc363","gitHead":"3d56f4f6a183c9cde644bf48055944468a9c9da4","scripts":{"test":"mocha"},"_npmUser":{"name":"2fd","email":"i@2fd.me"},"repository":{"url":"git+https://github.com/2fd/command.git","type":"git"},"_npmVersion":"3.8.6","description":"Modular command line tool","_nodeVersion":"6.1.0","dependencies":{},"devDependencies":{"chai":"^3.5.0","mocha":"^2.4.5"},"_npmOperationalInternal":{"tmp":"tmp/command-0.3.0.tgz_1463118166964_0.19566241023130715","host":"packages-16-east.internal.npmjs.com"},"directories":{}},"0.4.0":{"name":"@2fd/command","version":"0.4.0","keywords":["command"],"author":{"name":"Fede Ramirez","email":"i@2fd.me"},"license":"MIT","_id":"@2fd/command@0.4.0","maintainers":[{"name":"2fd","email":"i@2fd.me"}],"homepage":"https://github.com/2fd/command#readme","bugs":{"url":"https://github.com/2fd/command/issues"},"dist":{"shasum":"ec929f797737cf9711cd74e11c60d5b9d2dbfb2c","tarball":"https://registry.npmjs.org/@2fd/command/-/command-0.4.0.tgz","integrity":"sha512-6zK4w94DbZmj4lQzgd5RQnR82TOQIvWthr22SnxBgQOT6zAF/LatEjUIlsBEECa0nOaDChS/UgCcR5ZzkkdQaQ==","signatures":[{"sig":"MEQCIHf8+R8+lrf6fEFwWjbC2Pmqdj9zqS/1fYqzvVijH9ngAiB0scKroOTScWZQ+3caXmu9Pr/6lgVZaXSAu7QRLjtCpw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"ec929f797737cf9711cd74e11c60d5b9d2dbfb2c","gitHead":"132a59be2856fac2e127a0ee67bcfd9fab3dbfa5","scripts":{"test":"mocha","preversion":"npm test & tsc -d -p . & tsc -p ."},"typings":"index.d.ts","_npmUser":{"name":"2fd","email":"i@2fd.me"},"repository":{"url":"git+https://github.com/2fd/command.git","type":"git"},"_npmVersion":"3.8.9","description":"Modular command line tool","_nodeVersion":"6.2.0","dependencies":{},"devDependencies":{"chai":"^3.5.0","mocha":"^2.4.5"},"_npmOperationalInternal":{"tmp":"tmp/command-0.4.0.tgz_1464319420819_0.9798727931920439","host":"packages-12-west.internal.npmjs.com"},"directories":{}},"0.5.0":{"name":"@2fd/command","version":"0.5.0","keywords":["command"],"author":{"name":"Fede Ramirez","email":"i@2fd.me"},"license":"MIT","_id":"@2fd/command@0.5.0","maintainers":[{"name":"2fd","email":"i@2fd.me"}],"homepage":"https://github.com/2fd/command#readme","bugs":{"url":"https://github.com/2fd/command/issues"},"dist":{"shasum":"51f07559a16d533f51eb0d98ec46d46e54974acd","tarball":"https://registry.npmjs.org/@2fd/command/-/command-0.5.0.tgz","integrity":"sha512-wywXiftQy8BdYmrLGsUsHEMpP6aaeiSPiWTctWW6olzZY7pOEDyUoxABNmor9wzSEvqS8pQ7J/1AndWzEZNTcw==","signatures":[{"sig":"MEYCIQC1ksoMwbM4WIQ3PTJkUAbDtBpzmb2s7SsHFbGGRDu4TgIhAK5AfhykUjd//Alu9/tjUCkU+7fjdk3aBNecqF4DMAvB","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"51f07559a16d533f51eb0d98ec46d46e54974acd","gitHead":"3dea5964368bc45644710ffb3a7f4072a6db3381","scripts":{"test":"mocha","preversion":"npm test & tsc -d -p . & tsc -p ."},"typings":"index.d.ts","_npmUser":{"name":"2fd","email":"i@2fd.me"},"repository":{"url":"git+https://github.com/2fd/command.git","type":"git"},"_npmVersion":"3.8.9","description":"Modular command line tool","_nodeVersion":"6.2.0","dependencies":{},"devDependencies":{"chai":"^3.5.0","mocha":"^2.4.5"},"_npmOperationalInternal":{"tmp":"tmp/command-0.5.0.tgz_1464319748227_0.590181992854923","host":"packages-12-west.internal.npmjs.com"},"directories":{}},"0.6.0":{"name":"@2fd/command","version":"0.6.0","keywords":["command"],"author":{"name":"Fede Ramirez","email":"i@2fd.me"},"license":"MIT","_id":"@2fd/command@0.6.0","maintainers":[{"name":"2fd","email":"i@2fd.me"}],"homepage":"https://github.com/2fd/command#readme","bugs":{"url":"https://github.com/2fd/command/issues"},"dist":{"shasum":"86b7f43b9bcde3851abb26dda6e2de82d78bf14f","tarball":"https://registry.npmjs.org/@2fd/command/-/command-0.6.0.tgz","integrity":"sha512-ieYww1fIMeRpdtypjaVXZCqp0X7df1S6uXFnjxia4weF+Hl/hpP9MQCa8JaHjs3aXLAiKNP5ANOEVg+o+RKcZA==","signatures":[{"sig":"MEYCIQDeIRUP2jGmnpPEOeU2NfpXAUMihHEJtlrlqmN9qIZy1QIhAK6RcWy9Gin1ZPsjUtGJYmapBuIPIAS4tTFszvmsIoBu","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"86b7f43b9bcde3851abb26dda6e2de82d78bf14f","gitHead":"544872b2816803142fbfdd9ddd0984af9a950e20","scripts":{"test":"mocha","compile":"tsc -p .","preversion":"npm test & npm run declaration & npm run compile","declaration":"tsc -d -p tsconfig.d.json"},"typings":"index.d.ts","_npmUser":{"name":"2fd","email":"i@2fd.me"},"repository":{"url":"git+https://github.com/2fd/command.git","type":"git"},"_npmVersion":"3.8.9","description":"Modular command line tool","_nodeVersion":"6.2.0","dependencies":{},"devDependencies":{"chai":"^3.5.0","mocha":"^2.4.5"},"_npmOperationalInternal":{"tmp":"tmp/command-0.6.0.tgz_1464552746643_0.41874028532765806","host":"packages-16-east.internal.npmjs.com"},"directories":{}},"0.7.0":{"name":"@2fd/command","version":"0.7.0","keywords":["command"],"author":{"name":"Fede Ramirez","email":"i@2fd.me"},"license":"MIT","_id":"@2fd/command@0.7.0","maintainers":[{"name":"2fd","email":"i@2fd.me"}],"homepage":"https://github.com/2fd/command#readme","bugs":{"url":"https://github.com/2fd/command/issues"},"dist":{"shasum":"1117e6990d38b66b6b33b3234bcb1d4da81c7290","tarball":"https://registry.npmjs.org/@2fd/command/-/command-0.7.0.tgz","integrity":"sha512-j7EGHzN+HshD3/4tbiLzidXueoqzdAmSgKfYdjxscnK4JEorju+1oJMjr7XKD5WbNNdxsCw4+CjRgEP50EqwpQ==","signatures":[{"sig":"MEQCIC8thmyW0eoJSxG+3E5pt5hH+29vn8EfoE6S1EJY8qllAiAYjtHM8dzZxpWBxIkdqdYHCiD8EQ9qi88y3eoqAbxrkw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"1117e6990d38b66b6b33b3234bcb1d4da81c7290","gitHead":"2eab7d86c11e1cb394bd8a8a1ef32299c6cfa750","scripts":{"test":"mocha","compile":"tsc -p .","preversion":"npm test & npm run declaration & npm run compile","declaration":"tsc -d -p tsconfig.d.json"},"typings":"index.d.ts","_npmUser":{"name":"2fd","email":"i@2fd.me"},"repository":{"url":"git+https://github.com/2fd/command.git","type":"git"},"_npmVersion":"3.8.9","description":"Modular command line tool","_nodeVersion":"6.2.0","dependencies":{},"devDependencies":{"chai":"^3.5.0","mocha":"^2.4.5"},"_npmOperationalInternal":{"tmp":"tmp/command-0.7.0.tgz_1464838753035_0.5759405759163201","host":"packages-16-east.internal.npmjs.com"},"directories":{}},"1.0.0":{"name":"@2fd/command","version":"1.0.0","keywords":["command"],"author":{"name":"Fede Ramirez","email":"i@2fd.me"},"license":"MIT","_id":"@2fd/command@1.0.0","maintainers":[{"name":"2fd","email":"i@2fd.me"}],"homepage":"https://github.com/2fd/command#readme","bugs":{"url":"https://github.com/2fd/command/issues"},"dist":{"shasum":"2355bee8d07bd4f3ecceda598bc1fd5e5e491e9b","tarball":"https://registry.npmjs.org/@2fd/command/-/command-1.0.0.tgz","integrity":"sha512-IVFMc53pyzjv0dSrblnnP1djHhLT/Zh31nWoijLcHp5PwN5v8zxbhnB7vsXyMAjqdeSkgYUbSYGNaihXZ56TEg==","signatures":[{"sig":"MEYCIQDc0VsdD+uCzxPd1IzNrJrnVXdeLKXjkMCch3Vx9QTNMgIhAIbtLFf2CGaP8UMyFIW6O15/K5SeQGhNP2wWKIbs7T8/","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"2355bee8d07bd4f3ecceda598bc1fd5e5e491e9b","gitHead":"6ffb09746f576abf067900c4811036eef156ac82","scripts":{"test":"mocha","compile":"tsc -p .","preversion":"npm test && npm run declaration && npm run compile","declaration":"tsc -d -p tsconfig.d.json"},"typings":"index.d.ts","_npmUser":{"name":"2fd","email":"i@2fd.me"},"repository":{"url":"git+https://github.com/2fd/command.git","type":"git"},"_npmVersion":"3.8.9","description":"Modular command line tool","_nodeVersion":"6.2.0","dependencies":{},"devDependencies":{"chai":"^3.5.0","mocha":"^2.4.5"},"_npmOperationalInternal":{"tmp":"tmp/command-1.0.0.tgz_1467687372813_0.16375011135824025","host":"packages-16-east.internal.npmjs.com"},"directories":{}},"1.0.1":{"name":"@2fd/command","version":"1.0.1","keywords":["command"],"author":{"name":"Fede Ramirez","email":"i@2fd.me"},"license":"MIT","_id":"@2fd/command@1.0.1","maintainers":[{"name":"2fd","email":"i@2fd.me"}],"homepage":"https://github.com/2fd/command#readme","bugs":{"url":"https://github.com/2fd/command/issues"},"dist":{"shasum":"0bca38e67bbc20cc2edaf967b7cc55a0db9e4fe8","tarball":"https://registry.npmjs.org/@2fd/command/-/command-1.0.1.tgz","integrity":"sha512-hYtjC7qpOVWHl3Oc4uqdvRu278IHwI8rihfDeMWiuWW6yoU1WyR8AiSJlTUEAYJwLhn4M4Vvorb8xFVFLB0FIw==","signatures":[{"sig":"MEQCIAh+aEpBnV3G/khkuQtthmYmF9PwG8CvdeIvZvKqIv1cAiBrf4GHw7IumWM8AKvtcyOQbyULw0FBrvh2WGYQnuxBtA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"0bca38e67bbc20cc2edaf967b7cc55a0db9e4fe8","gitHead":"485ec7d2ff5367786024936b8da7a32e6fa6fa7a","scripts":{"test":"mocha","compile":"tsc -p .","preversion":"npm test && npm run declaration && npm run compile","declaration":"tsc -d -p tsconfig.d.json"},"typings":"index.d.ts","_npmUser":{"name":"2fd","email":"i@2fd.me"},"repository":{"url":"git+https://github.com/2fd/command.git","type":"git"},"_npmVersion":"3.10.3","description":"Modular command line tool","_nodeVersion":"6.2.0","dependencies":{},"devDependencies":{"chai":"^3.5.0","mocha":"^2.4.5"},"_npmOperationalInternal":{"tmp":"tmp/command-1.0.1.tgz_1471887328769_0.17690357356332242","host":"packages-12-west.internal.npmjs.com"},"directories":{}},"1.1.0":{"name":"@2fd/command","version":"1.1.0","keywords":["command"],"author":{"name":"Fede Ramirez","email":"i@2fd.me"},"license":"MIT","_id":"@2fd/command@1.1.0","maintainers":[{"name":"2fd","email":"i@2fd.me"}],"homepage":"https://github.com/2fd/command#readme","bugs":{"url":"https://github.com/2fd/command/issues"},"dist":{"shasum":"e7887d3126a0832b4bd31b795e4ed96992e3a2e7","tarball":"https://registry.npmjs.org/@2fd/command/-/command-1.1.0.tgz","integrity":"sha512-JP3z70GScoZsxDFajXvAIP9jCUzP4Ji2i7/Fb8geWwOP5BeD3QBsjeR5KcJSF25cKpIF9sqH3NXcyErf7fBxWQ==","signatures":[{"sig":"MEYCIQDdXR9KOKTw7sclZhWU0fncXqHbdW6qkUmkdjbaCw+D/gIhANhoTTszSh7vgVTJBmzuzqSkSLot+nn/nol3L/41JE/P","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"e7887d3126a0832b4bd31b795e4ed96992e3a2e7","gitHead":"8f149b6d346153e4a1c9b222afa5f80b8b181538","scripts":{"test":"mocha","compile":"tsc -p .","preversion":"npm test && npm run declaration && npm run compile","declaration":"tsc -d -p tsconfig.d.json"},"typings":"index.d.ts","_npmUser":{"name":"2fd","email":"i@2fd.me"},"repository":{"url":"git+https://github.com/2fd/command.git","type":"git"},"_npmVersion":"3.10.6","description":"Modular command line tool","_nodeVersion":"6.2.0","dependencies":{},"devDependencies":{"chai":"^3.5.0","mocha":"^2.4.5"},"_npmOperationalInternal":{"tmp":"tmp/command-1.1.0.tgz_1472424783904_0.2997352124657482","host":"packages-16-east.internal.npmjs.com"},"directories":{}},"1.1.1":{"name":"@2fd/command","version":"1.1.1","keywords":["command"],"author":{"name":"Fede Ramirez","email":"i@2fd.me"},"license":"MIT","_id":"@2fd/command@1.1.1","maintainers":[{"name":"2fd","email":"i@2fd.me"}],"homepage":"https://github.com/2fd/command#readme","bugs":{"url":"https://github.com/2fd/command/issues"},"dist":{"shasum":"96971b2940f13735b847782fb3e2667f325a7b78","tarball":"https://registry.npmjs.org/@2fd/command/-/command-1.1.1.tgz","integrity":"sha512-g4HG01vdjn4klh8RCbspl/VcZz/4XFnzyKZXGmYnK5dqsjryvpz61lEa41n0RekGbh6Q2DDFywsjMkFS9UsH6w==","signatures":[{"sig":"MEYCIQDWlOKYV5eHeaYieKWgl3DO0TexvrteqKwrqjm2YdVKTwIhAJG6tLJAaUNOtpzRyVS0TnrNOUCFGU0Fby1Jagkfb0bd","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"96971b2940f13735b847782fb3e2667f325a7b78","gitHead":"36dc3be41fe14bd3cb6580492591a2367f746af7","scripts":{"test":"mocha","compile":"tsc -p .","preversion":"npm test && npm run declaration && npm run compile","declaration":"tsc -d -p tsconfig.d.json"},"typings":"index.d.ts","_npmUser":{"name":"2fd","email":"i@2fd.me"},"repository":{"url":"git+https://github.com/2fd/command.git","type":"git"},"_npmVersion":"3.10.8","description":"Modular command line tool","_nodeVersion":"6.8.0","dependencies":{},"devDependencies":{"chai":"^3.5.0","mocha":"^2.4.5","@types/chai":"^3.4.34","@types/node":"^6.0.48","@types/mocha":"^2.2.33"},"_npmOperationalInternal":{"tmp":"tmp/command-1.1.1.tgz_1479612680955_0.6571146866772324","host":"packages-18-east.internal.npmjs.com"},"directories":{}},"1.1.2":{"name":"@2fd/command","version":"1.1.2","keywords":["command"],"author":{"name":"Fede Ramirez","email":"i@2fd.me"},"license":"MIT","_id":"@2fd/command@1.1.2","maintainers":[{"name":"2fd","email":"i@2fd.me"}],"homepage":"https://github.com/2fd/command#readme","bugs":{"url":"https://github.com/2fd/command/issues"},"dist":{"shasum":"b831d511bdd3b4e2d88139aaddb06d3d6aa0b08a","tarball":"https://registry.npmjs.org/@2fd/command/-/command-1.1.2.tgz","integrity":"sha512-VrMpouia1w5LhnX+qiaZom9DFMuF5WAPKD8LkLeCHG1DE2s/JY8wKIc8EEGspz22FhUfeg9LS4IpkOW5Lex2Uw==","signatures":[{"sig":"MEUCID16IwNGm4vuhp2/F121ejYjK9udlNcb+E9bDcOP4NGpAiEA16Iwxq1n/spR1fP4NfKuQW2MM8rnUjuAE0Ndu+xUZqg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"b831d511bdd3b4e2d88139aaddb06d3d6aa0b08a","gitHead":"96531209719e043eb4ec6670a58fbabc23ef60ee","scripts":{"test":"mocha","compile":"tsc -p .","preversion":"npm test && npm run declaration && npm run compile","declaration":"tsc -d -p tsconfig.d.json"},"typings":"index.d.ts","_npmUser":{"name":"2fd","email":"i@2fd.me"},"repository":{"url":"git+https://github.com/2fd/command.git","type":"git"},"_npmVersion":"3.10.8","description":"Modular command line tool","_nodeVersion":"6.8.0","dependencies":{},"devDependencies":{"chai":"^3.5.0","mocha":"^2.4.5","@types/chai":"^3.4.34","@types/node":"^6.0.48","@types/mocha":"^2.2.33"},"_npmOperationalInternal":{"tmp":"tmp/command-1.1.2.tgz_1479612941599_0.7503760210238397","host":"packages-18-east.internal.npmjs.com"},"directories":{}},"1.1.3":{"_id":"@2fd/command@1.1.3","bugs":{"url":"https://github.com/2fd/command/issues"},"dist":{"shasum":"be855af9e9acfd7fdb5f852be9af07247f9e73bd","tarball":"https://registry.npmjs.org/@2fd/command/-/command-1.1.3.tgz","fileCount":29,"integrity":"sha512-aVgwL4tuNaTLDvSaN5Q56zK5rCDhRcmZM3lqYeZ8QUqWRGZmUomZ8CoOOYKnsiDt4FoIjKoVyzG1RuwvrTbuhg==","signatures":[{"sig":"MEQCICeiNqoDie9F9R2INfI0AJGWGEA1qhOozlQ5WFczQqTuAiBArhenJTkJO3rL92zML+CMqkBW6pMFlOgbwO6AYMR/pA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCICLv07WD9v7QIywWU0ObaCsjviGui8WooLITiTF5XzmLAiEAvDpE8tWvDnmH63mF9FVqnuwVv2kDFCsNgXjyiZE4wa0="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@2fd%2fcommand@1.1.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":71706},"main":"index.js","name":"@2fd/command","author":{"name":"Fede Ramirez","email":"i@2fd.me"},"gitHead":"45db57c572ad376f2e29c706ac74051950484c62","license":"MIT","scripts":{"test":"tsc -p . && node test/index.js","compile":"tsc -p .","prepack":"pnpm run declaration && pnpm run compile","declaration":"tsc -d -p tsconfig.d.json"},"typings":"index.d.ts","version":"1.1.3","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"7518856e-fb91-4fd0-bb57-4b7b4dba8959"}},"homepage":"https://github.com/2fd/command#readme","keywords":["command"],"repository":{"url":"git+https://github.com/2fd/command.git","type":"git"},"_npmVersion":"11.20.0","description":"Modular command line tool","directories":{},"maintainers":[{"name":"2fd","email":"i@2fd.me"}],"_nodeVersion":"26.13.0","dependencies":{},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"packageManager":"pnpm@11.22.0","devDependencies":{"typescript":"2.0.10"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/command_1.1.3_1793560479278_0.5522555741704653"}}},"time":{"created":"2016-05-02T04:26:49.147Z","modified":"2026-11-01T19:14:39.628Z","0.1.0":"2016-05-02T04:26:49.147Z","0.2.0":"2016-05-05T04:06:44.230Z","0.3.0":"2016-05-13T05:42:48.720Z","0.4.0":"2016-05-27T03:23:43.366Z","0.5.0":"2016-05-27T03:29:10.630Z","0.6.0":"2016-05-29T20:12:28.648Z","0.7.0":"2016-06-02T03:39:14.332Z","1.0.0":"2016-07-05T02:56:15.148Z","1.0.1":"2016-08-22T17:35:28.993Z","1.1.0":"2016-08-28T22:53:06.085Z","1.1.1":"2016-11-20T03:31:21.506Z","1.1.2":"2016-11-20T03:35:42.130Z","1.1.3":"2026-11-01T19:14:39.351Z"},"bugs":{"url":"https://github.com/2fd/command/issues"},"author":{"name":"Fede Ramirez","email":"i@2fd.me"},"license":"MIT","homepage":"https://github.com/2fd/command#readme","keywords":["command"],"repository":{"url":"git+https://github.com/2fd/command.git","type":"git"},"description":"Modular command line tool","maintainers":[{"name":"2fd","email":"i@2fd.me"}],"readme":"# @2fd/command [![test](https://github.com/2fd/command/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/2fd/command/actions/workflows/test.yml)\n\nModular, object-oriented framework for building command line tools in Node.js,\nwith TypeScript definitions included.\n\n> **Zero dependencies.** `@2fd/command` has no runtime dependencies: installing\n> it adds exactly one package to your `node_modules`. The only dev dependency\n> is TypeScript, used to compile the sources.\n\n- [Install](#install)\n- [Goals](#goals)\n- [Quick start](#quick-start)\n- [Commands](#commands)\n- [Params](#params)\n- [Flags](#flags)\n- [Executor (multi-command tools)](#executor-multi-command-tools)\n- [Input and output](#input-and-output)\n- [Error handling](#error-handling)\n- [Extending](#extending)\n- [API reference](#api-reference)\n- [Development](#development)\n\n## Install\n\n```bash\nnpm install --save @2fd/command\n```\n\nSupported Node.js versions are the ones tested in CI: every major release from\n0.12 to 26.\n\nSupported TypeScript versions are the ones tested in CI: 2.0, 2.4, 2.9, 3.9,\n4.9, 5.x, 6.x and the latest release. The `types` job installs the packed\npackage into [`compat/`](compat) and type-checks it with each version. TS 2.0\nto 5.x use `moduleResolution: node`, and TS 5.x and later use `nodenext` with\n`strict`.\n\n## Goals\n\n- **No dependencies.** Nothing else gets pulled into your tree, so there are\n  no transitive packages to audit, update or patch.\n\n- **Lazy loading.** A command can be registered as a string that points to its\n  module (`'./commands#migrate'`). The module is only `require`d when that\n  command runs (or when help is printed), so large tools boot fast.\n\n- **Command names belong to the tool, not to the package.** The tool that\n  registers a command decides how it is invoked (`migration:init`, `mgt:i`, …).\n  Third-party packages export commands; you pick the ones you need, rename\n  them, or replace them with your own.\n\n- **Fully modular.** Commands, params, flags, input and output are small\n  objects behind interfaces, so any piece can be shared, replaced or extended.\n\n- **Typed.** Type definitions ship with the package (`index.d.ts`); no\n  `typings`/`@types` install required. They are tested with TypeScript 2.0 up\n  to the latest release (see [Install](#install)).\n\n## Quick start\n\n```js\n// cli.js\nconst {\n    Command,\n    ExecutorCommand,\n    Param,\n    BooleanFlag,\n    ValueFlag,\n    ArgvInput,\n    ConsoleOutput,\n} = require('@2fd/command');\n\nclass Greet extends Command {\n    constructor() {\n        super();\n        this.description = 'Greet someone';\n        this.params = new Param('name [...others]');\n        this.flags = [\n            new BooleanFlag('loud', ['--loud', '-l'], 'Uppercase the greeting'),\n            new ValueFlag('times', ['--times', '-t'], 'Repeat N times', Number, 1),\n        ];\n    }\n\n    action(input, output) {\n        const names = [input.params.name, ...(input.params.others || [])];\n        let msg = 'Hello ' + names.join(', ');\n\n        if (input.flags.loud)\n            msg = msg.toUpperCase();\n\n        for (let i = 0; i < input.flags.times; i++)\n            output.log(msg);\n    }\n}\n\nconst tool = new ExecutorCommand();\ntool.version = '1.0.0';\ntool.description = 'My tool';\ntool.addCommand('greet', new Greet());\n\ntool.handle(new ArgvInput(process.argv), new ConsoleOutput());\n```\n\n```console\n$ node cli.js greet Ana Bob -l -t 2\nHELLO ANA, BOB\nHELLO ANA, BOB\n```\n\n## Commands\n\nA command is any object that implements `CommandInterface`:\n\n```ts\ninterface CommandInterface<F, P> {\n    description: string;\n    handle(input: InputInterface<F, P>, output: OutputInterface): void;\n}\n```\n\nYou will usually extend one of the built-in classes instead of implementing it\ndirectly.\n\n### `Command` (class)\n\nExtend `Command`, define `description`, `params` and `flags`, and implement\n`action`. `handle()` parses the input, validates params and flags, and then\ncalls `action()`.\n\n```ts\nimport {\n    Command,\n    InputInterface,\n    OutputInterface,\n    Param,\n    BooleanFlag,\n} from '@2fd/command';\n\ntype Flags = { force: boolean };\ntype Params = { requireParam: string; optionalParam?: string; optionalParamList?: string[] };\n\nexport class MyCommand extends Command<Flags, Params> {\n\n    description = 'My Command description';\n\n    params = new Param('requireParam [optionalParam] [...optionalParamList]');\n\n    flags = [\n        new BooleanFlag('force', ['--force', '-f'], 'Force flag'),\n    ];\n\n    action(input: InputInterface<Flags, Params>, output: OutputInterface): void {\n        // input.params.requireParam       -> string\n        // input.params.optionalParam      -> string | undefined\n        // input.params.optionalParamList  -> string[] | undefined\n        // input.flags.force               -> boolean\n    }\n}\n\nexport const myCommand = new MyCommand();\n```\n\nRules enforced by `Command`:\n\n- `params` is required (use `NoParams` or `IgnoreParams` for commands without\n  positional arguments).\n- `flags` must be an array (it can be empty).\n- Two flags cannot share the same `name` or the same option (e.g. two `-f`).\n- Unknown options throw `Unexpected option: <flag>`.\n- A help flag (`-h, --help`) is added automatically. When present, help is\n  printed and `action()` is not called.\n\nA standalone command can run without an executor:\n\n```js\n// command.js\nconst { ArgvInput, ConsoleOutput } = require('@2fd/command');\nconst { myCommand } = require('./commands');\n\nmyCommand.handle(new ArgvInput(process.argv), new ConsoleOutput());\n```\n\n```console\n$ node command.js --help\n\n    My Command description\n\n    Usage: node command.js [OPTIONS] requireParam [optionalParam] [...optionalParamList]\n\n\n    [OPTIONS]:\n    --force, -f    Force flag\n    -h, --help     Print this help\n```\n\n### Quick commands (functions)\n\nA plain function `(input, output) => void` can be registered as a command.\nSet a `description` property on the function to show it in the help (defaults\nto `-`). Quick commands receive the raw input: no params/flags are parsed,\n`input.argv` contains the remaining arguments.\n\n```js\nfunction ping(input, output) {\n    output.log('pong', input.argv);\n}\nping.description = 'Reply with pong';\n\nexports.ping = ping;\n```\n\n## Params\n\n`Param` parses positional arguments from a definition string. Each\nwhitespace-separated token defines one param:\n\n| Token         | Meaning                                   | Value in `input.params` |\n| ------------- | ----------------------------------------- | ----------------------- |\n| `name`        | required                                  | `string`                |\n| `[name]`      | optional                                  | `string \\| undefined`   |\n| `...name`     | required list (at least one value)        | `string[]`              |\n| `[...name]`   | optional list                             | `string[] \\| undefined` |\n\n```js\nnew Param('source');\nnew Param('source [target]');\nnew Param('...files');\nnew Param('src1 src2 [optional] [...rest]');\n```\n\nValues are assigned in order. A list param consumes every remaining positional\nargument. Extra arguments throw `Unexpected param: <value>`; a missing required\nparam throws `Param <name> is required`.\n\nOther param handlers:\n\n| Class          | Behavior                                              |\n| -------------- | ----------------------------------------------------- |\n| `NoParams`     | Any positional argument throws `Unexpected param`.    |\n| `IgnoreParams` | Positional arguments are silently ignored.            |\n\n## Flags\n\nEvery flag takes `(name, list, description)`:\n\n- `name`: key used in `input.flags`.\n- `list`: options that activate the flag, e.g. `['--force', '-f']`.\n- `description`: text shown in the help. Required, must not be empty.\n\n| Class                                                | Value in `input.flags[name]`                                 |\n| ---------------------------------------------------- | ------------------------------------------------------------ |\n| `BooleanFlag(name, list, desc)`                      | `true` if present, otherwise `false`.                        |\n| `ValueFlag(name, list, desc, parser?, default?)`     | Next argument, passed through `parser` if given. `default` if absent, otherwise `undefined`. |\n| `ListValueFlag(name, list, desc, parser?, default?)` | Array of values, one per occurrence (`--tag a --tag b`). `default` (or `[]`) if absent. |\n| `RequireFlag(flag)`                                  | Wraps another flag and throws if its value is `undefined`, `null`, `NaN` or empty. |\n| `HelpFlag()`                                         | Boolean `help` flag on `-h, --help`. Added automatically.     |\n| `NullFlag()`                                         | No-op flag.                                                  |\n\n```js\nconst {\n    BooleanFlag, ValueFlag, ListValueFlag, RequireFlag,\n} = require('@2fd/command');\n\nthis.flags = [\n    new BooleanFlag('dryRun', ['--dry-run', '-n'], 'Do not write anything'),\n    new ValueFlag('port', ['--port', '-p'], 'Port to listen on', Number, 8080),\n    new ListValueFlag('env', ['--env', '-e'], 'Environment variable (repeatable)'),\n    new RequireFlag(\n        new ValueFlag('config', ['--config', '-c'], 'Config file path')\n    ),\n];\n```\n\nParsing notes:\n\n- Any argument starting with `-` is treated as a flag.\n- Values are passed as a separate argument (`--port 80`). `--port=80` and\n  grouped short flags (`-abc`) are not supported.\n- A value cannot start with `-`; `--port -1` throws `Flag port (--port, -p) expect a value`.\n\n## Executor (multi-command tools)\n\n`ExecutorCommand` routes the first positional argument to a registered command\nand passes the remaining arguments to it.\n\n```js\nconst { ExecutorCommand, ArgvInput, ColorConsoleOutput } = require('@2fd/command');\nconst { myCommand } = require('./commands');\n\nconst tool = new ExecutorCommand();\ntool.version = '1.0.0';\ntool.description = 'My tool';\n\n// Command instance\ntool.addCommand('run', myCommand);\n\n// Lazy loaded: \"<module path>#<export name>\"\ntool.addCommand('build', './lib/commands#build');\n\n// Lazy loaded: the module itself is the command (module.exports = ...)\ntool.addCommand('clean', './lib/commands/clean');\n\n// Several at once\ntool.addCommands({\n    'start': './lib/commands#start',\n    'stop':  './lib/commands#stop',\n});\n\n// Namespaced: registered as \"db:migrate\" and \"db:seed\"\ntool.addCommadsNS('db', {\n    'migrate': './lib/commands/db#migrate',\n    'seed':    './lib/commands/db#seed',\n});\n\ntool.handle(new ArgvInput(process.argv), new ColorConsoleOutput());\n```\n\nRunning without a command (or with an unknown one) prints the help. Commands\nwithout a namespace are listed first, then everything is sorted alphabetically:\n\n```console\n$ node cli.js\n\n    My tool [v1.0.0]\n\n    Usage: node cli.js [OPTIONS] [COMMAND]\n\n\n    [COMMAND]:\n    build         Build the project\n    clean         Remove build output\n    run           My Command description\n    start         Start the server\n    stop          Stop the server\n    db:migrate    Run migrations\n    db:seed       Seed the database\n\n    [OPTIONS]:\n    -h, --help    Print this help\n```\n\n### Lazy loading paths\n\nA string command has the format `<module>[#<export>]`:\n\n- `<module>` starting with `.` is resolved **against `process.cwd()`**, not\n  against the file that registers it. For tools that can run from any\n  directory, use an absolute path:\n\n  ```js\n  const { join } = require('path');\n  tool.addCommand('build', join(__dirname, 'lib/commands') + '#build');\n  ```\n\n- Any other `<module>` is resolved with `require.resolve` (package names,\n  absolute paths): `'some-package/commands#migrate'`.\n- Without `#<export>`, the module export itself is used.\n- The export can be a command object or a quick command function.\n\nLazy commands are loaded when they run or when the executor help is printed\n(to read their `description`).\n\n### Executors can be nested\n\n`ExecutorCommand` is itself a command, so it can be registered inside another\nexecutor to build deeper command trees.\n\n## Input and output\n\n### `ArgvInput(argv, exec?)`\n\nWraps `process.argv`. It removes the Node.js executable and script path from\n`argv` and stores them in `exec`, which is used to print the `Usage:` line.\nIf the script lives in a `PATH` directory (a globally installed `bin`), only the\nscript name is shown.\n\n```ts\ninterface InputInterface<F, P> {\n    argv: string[];   // arguments not consumed yet\n    exec: string[];   // how the tool was invoked, e.g. ['node', 'cli.js']\n    flags: F;         // parsed flags\n    params: P;        // parsed params\n}\n```\n\n### Outputs\n\n| Class                | Behavior                                                                    |\n| -------------------- | --------------------------------------------------------------------------- |\n| `ConsoleOutput`      | Writes to `console.log` / `console.error`. `%c` styles are stripped.        |\n| `ColorConsoleOutput` | Same, but translates `%c` CSS-like styles to ANSI colors. `error()` is red. |\n\nBoth support the `util.format` placeholders (`%s`, `%d`, `%j`) plus the browser\nconsole placeholders `%i`, `%f`, `%o`, `%O` and `%c`:\n\n```js\noutput.log('%cdone%c in %dms', 'color:green;font-weight:bold', '', 120);\noutput.error('Cannot open %s', file);\n```\n\nSupported `%c` styles: `color:<name>`, `background:<name>` /\n`background-color:<name>`, `font-weight:bold|normal`, `font-style:italic`,\n`text-decoration:underline|line-through`, `visibility:hidden`.\nColor names: `black`, `red`, `green`, `yellow`, `blue`, `magenta`, `cyan`,\n`white`, `gray`/`grey` (no `gray` background).\n\nAny object with `log()` and `error()` methods can be used as output (for\nexample, to capture output in tests).\n\n## Error handling\n\nParse and validation errors are thrown as regular `Error`s and are **not**\ncaught by the library. Wrap `handle()` to print a clean message and set the\nexit code:\n\n```js\ntry {\n    tool.handle(new ArgvInput(process.argv), output);\n} catch (err) {\n    output.error(err.message);\n    process.exitCode = 1;\n}\n```\n\nErrors thrown by the library:\n\n| Message                                     | Cause                                       |\n| ------------------------------------------- | ------------------------------------------- |\n| `Unexpected option: <flag>`                 | Unknown flag.                               |\n| `Unexpected param: <value>`                 | Too many positional arguments.              |\n| `Param <name> is required`                  | Missing required param.                     |\n| `Flag <name> (<list>) expect a value`       | `ValueFlag`/`ListValueFlag` without value.  |\n| `Flag <name> (<list>) is required`          | `RequireFlag` not provided.                 |\n| `Cannot overwrite flag ...`                 | Duplicate flag name or option.              |\n| `<export> not found in <path>`              | Lazy command export does not exist.         |\n\n## Extending\n\nCustom flags and params implement small interfaces with three hooks, called in\nthis order by `Command.handle()`:\n\n1. `before(input, output)`: once, before parsing. Set defaults here.\n2. `parse(arg, input, output)`: for each matching argument. A flag can consume\n   its value with `input.argv.shift()`.\n3. `after(input, output)`: once, after parsing (skipped when `--help` is\n   present). Validate or normalize here.\n\n```ts\ninterface FlagInterface<F> {\n    name: string;\n    description: string;\n    list: string[];\n    before(input, output): void;\n    parse(flag: string, input, output): void;\n    after(input, output): void;\n}\n\ninterface ParamInterface<P> {\n    definition: string;           // shown in the \"Usage:\" line\n    before(input, output): void;\n    parse(param: string, input, output): void;\n    after(input, output): void;\n}\n```\n\nExample: a counter flag (`-v -v -v` → `3`).\n\n```js\nconst { FlagConstructor } = require('@2fd/command');\n\nclass CountFlag extends FlagConstructor {\n    before(input) { input.flags[this.name] = 0; }\n    parse(flag, input) { input.flags[this.name]++; }\n    after() { }\n}\n\nnew CountFlag('verbose', ['--verbose', '-v'], 'Increase verbosity');\n```\n\nTo customize the help, override `helpDescription()`, `helpUsage(executable)` or\n`helpOptions()` in your command, or replace the help flag by setting\n`helpFlag` before the first `handle()` call.\n\n## API reference\n\nEverything below is exported from `@2fd/command`.\n\n| Export               | Kind      | Description                                       |\n| -------------------- | --------- | ------------------------------------------------- |\n| `Command`            | class     | Base class for commands with params and flags.    |\n| `ExecutorCommand`    | class     | Routes sub-commands; supports lazy loading.       |\n| `Param`              | class     | Positional params from a definition string.       |\n| `NoParams`           | class     | Rejects positional params.                        |\n| `IgnoreParams`       | class     | Ignores positional params.                        |\n| `FlagConstructor`    | class     | Base class that validates `name`, `list`, `description`. |\n| `BooleanFlag`        | class     | `true`/`false` flag.                              |\n| `ValueFlag`          | class     | Flag with a single value.                         |\n| `ListValueFlag`      | class     | Repeatable flag with a list of values.            |\n| `RequireFlag`        | class     | Makes a wrapped flag required.                    |\n| `HelpFlag`           | class     | `-h, --help`.                                     |\n| `NullFlag`           | class     | No-op flag.                                       |\n| `ArgvInput`          | class     | Input from `process.argv`.                        |\n| `ConsoleOutput`      | class     | Plain console output.                             |\n| `ColorConsoleOutput` | class     | Console output with ANSI colors.                  |\n| `CommandInterface`   | interface | Contract for any command.                         |\n| `InputInterface`     | interface | Contract for input objects.                       |\n| `OutputInterface`    | interface | Contract for output objects.                      |\n\n## Development\n\n```bash\nnpm install\nnpm run compile       # tsc -p .\nnpm run declaration   # generate .d.ts files\nnpm test              # mocha (run compile first)\n```\n\n## License\n\n[MIT](LICENSE)\n","readmeFilename":"README.md"}