{"_id":"codesurgeon","_rev":"39-666556eb6281047a88af13357bcf6dfc","name":"codesurgeon","description":"The Node.js build tool","dist-tags":{"latest":"0.3.4-1"},"versions":{"0.0.1":{"name":"codesurgeon","description":"Build JS files based on JS code extracted from files","version":"0.0.1","author":{"name":"Nodejitsu Inc","email":"info@nodejitsu.com"},"contributors":[{"name":"Paolo Fragomeni","email":"hij1nx@nodejitsu.com"}],"repository":{"type":"git","url":"git://github.com/hij1nx/filesurgeon.git"},"dependencies":{"uglify-js":"1.0.6"},"devDependencies":{"eyes":"0.1.x","nodeunit":"0.5.x"},"main":"./lib/filesurgeon","engines":{"node":">= 0.4.0"},"_npmJsonOpts":{"file":"/Users/paolo/.npm/codesurgeon/0.0.1/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"codesurgeon@0.0.1","_engineSupported":true,"_npmVersion":"1.0.27","_nodeVersion":"v0.4.10","_defaultsLoaded":true,"dist":{"shasum":"55c62c8093cd2db546ffee61e69f47fcb7cb9c73","tarball":"https://registry.npmjs.org/codesurgeon/-/codesurgeon-0.0.1.tgz","integrity":"sha512-pToRbm9s+pSRdYsbaK5wDOvFJM8kjsw3LXu0Tdps2QTXrTVSZeyTXMUmHhT3HKKGSV10OMMNv9n81KAI3ZQrnA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDc6saJ4EKC63vIIf3tkkL1JEIpJc7k35df+C0Su4W7vAIgRAsTj6Acgq3lHt31dOmhN7AT5zvfDCIhD+I+n+Tcki4="}]},"maintainers":[{"name":"hij1nx","email":"hij1nx@me.com"}]},"0.0.2":{"name":"codesurgeon","description":"Build JS files based on JS code extracted from files","version":"0.0.2","author":{"name":"Nodejitsu Inc","email":"info@nodejitsu.com"},"contributors":[{"name":"Paolo Fragomeni","email":"hij1nx@nodejitsu.com"}],"repository":{"type":"git","url":"git://github.com/hij1nx/codesurgeon.git"},"keywords":["build","deploy","devops"],"dependencies":{"uglify-js":"1.0.6"},"devDependencies":{"eyes":"0.1.x","nodeunit":"0.5.x"},"main":"./lib/codesurgeon","engines":{"node":">= 0.4.0"},"_npmJsonOpts":{"file":"/Users/paolo/.npm/codesurgeon/0.0.2/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"codesurgeon@0.0.2","_engineSupported":true,"_npmVersion":"1.0.27","_nodeVersion":"v0.4.10","_defaultsLoaded":true,"dist":{"shasum":"c2944845cd70b24f7970329da5acb845d967fc21","tarball":"https://registry.npmjs.org/codesurgeon/-/codesurgeon-0.0.2.tgz","integrity":"sha512-dTvhGEE6fyP/qEcio+vJS+XdeH7jDZ075TBlQw1So5ZmnipL8kDQHf3FHohZ3yD9u0Dx9u8CnpeTm6b2AM9ELA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCBudVFkhHiIo3AJI+9bzUHT1FkDXFzBiCbAFWqTpspoQIhAKYjUV7fUZG+VKzRRUKQ7qpcVdZNsjbaJGn6sVYfqETD"}]},"maintainers":[{"name":"hij1nx","email":"hij1nx@me.com"}]},"0.1.0":{"name":"codesurgeon","description":"Build JS files based on JS code extracted from files","version":"0.1.0","author":{"name":"Nodejitsu Inc","email":"info@nodejitsu.com"},"contributors":[{"name":"Paolo Fragomeni","email":"hij1nx@nodejitsu.com"}],"repository":{"type":"git","url":"git://github.com/hij1nx/codesurgeon.git"},"keywords":["build","deploy","devops"],"dependencies":{"uglify-js":"1.0.6","traverse":"0.5.x"},"devDependencies":{"eyes":"0.1.x","colors":"0.5.x","nodeunit":"0.5.x"},"main":"./lib/codesurgeon","engines":{"node":">= 0.4.0"},"scripts":{"test":"nodeunit test/*-test.js"},"_npmJsonOpts":{"file":"/Users/paolo/.npm/codesurgeon/0.1.0/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"codesurgeon@0.1.0","_engineSupported":true,"_npmVersion":"1.0.27","_nodeVersion":"v0.4.10","_defaultsLoaded":true,"dist":{"shasum":"ae1404bdd69010eb2eec9bcc2f502464f2f9cd6a","tarball":"https://registry.npmjs.org/codesurgeon/-/codesurgeon-0.1.0.tgz","integrity":"sha512-jOwKeFQzWwiGUXkQJ3AYXXTdEDZGhh9jMwde86IESOzVsfyNRrb+saeGvbX2sffeiUIMCiukvAk2HPjTg0V9ZA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCL/8wkxbhpzUz4bHsOjZMDA6tEYcqsgtXdUyt2i0PQfQIgXKzz2tF1dbhAesT8EwDsFJ3l+BJeXXLVP/qYMNY8oto="}]},"maintainers":[{"name":"hij1nx","email":"hij1nx@me.com"}]},"0.1.1":{"name":"codesurgeon","description":"Build JS files based on JS code extracted from files","version":"0.1.1","author":{"name":"Nodejitsu Inc","email":"info@nodejitsu.com"},"contributors":[{"name":"Paolo Fragomeni","email":"hij1nx@nodejitsu.com"}],"repository":{"type":"git","url":"git://github.com/hij1nx/codesurgeon.git"},"keywords":["build","deploy","devops"],"dependencies":{"uglify-js":"1.0.6","traverse":"0.5.x"},"devDependencies":{"eyes":"0.1.x","colors":"0.5.x","nodeunit":"0.5.x"},"main":"./lib/codesurgeon","engines":{"node":">= 0.4.0"},"scripts":{"test":"nodeunit test/*-test.js"},"_npmJsonOpts":{"file":"/Users/paolo/.npm/codesurgeon/0.1.1/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"codesurgeon@0.1.1","_engineSupported":true,"_npmVersion":"1.0.27","_nodeVersion":"v0.4.10","_defaultsLoaded":true,"dist":{"shasum":"efdd18794b0880992c3a41af6baaeb6c48a76019","tarball":"https://registry.npmjs.org/codesurgeon/-/codesurgeon-0.1.1.tgz","integrity":"sha512-ufwtVzktYZKR1WbQsL30/Qb0cSxHxrW4gcKl63GISXZ76/RosrTnyZAcERBqcX3ao4p43CVekC36Xr9YWu0k7w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAq62Rs5JNkEft61ABIJl0d16qIgaIvozmoyLncj/BPYAiEArBmXpE/WVZQNfoAaQ/+3Hb/W6Dcn1B/T1x0tFCsGHaQ="}]},"maintainers":[{"name":"hij1nx","email":"hij1nx@me.com"}]},"0.1.2":{"name":"codesurgeon","description":"Build JS files based on JS code extracted from files","version":"0.1.2","author":{"name":"Nodejitsu Inc","email":"info@nodejitsu.com"},"contributors":[{"name":"Paolo Fragomeni","email":"hij1nx@nodejitsu.com"}],"repository":{"type":"git","url":"git://github.com/hij1nx/codesurgeon.git"},"keywords":["build","deploy","devops"],"dependencies":{"uglify-js":"1.0.6","traverse":"0.5.x"},"devDependencies":{"eyes":"0.1.x","colors":"0.5.x","nodeunit":"0.5.x"},"main":"./lib/codesurgeon","engines":{"node":">= 0.4.0"},"scripts":{"test":"nodeunit test/*-test.js"},"_npmJsonOpts":{"file":"/Users/paolo/.npm/codesurgeon/0.1.2/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"codesurgeon@0.1.2","_engineSupported":true,"_npmVersion":"1.0.27","_nodeVersion":"v0.4.10","_defaultsLoaded":true,"dist":{"shasum":"2dd71ee4606dfbc180e5a9ad15180a207c35dc0c","tarball":"https://registry.npmjs.org/codesurgeon/-/codesurgeon-0.1.2.tgz","integrity":"sha512-EGplekehUpNqL4BGswTwsiMJlCC/9vejKp84HYvQHI8zbc+TFi+3kyXGcmaVuwVSot+/Ve0XNmKdwef1S/C2jA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDAav2TAK3qeU4L39by1smdYfzphlD362OKcjPuR54OygIhANdDieCE0IkykYPKzPExCWlJHnv2KPFe1nTKskKLb7Nk"}]},"maintainers":[{"name":"hij1nx","email":"hij1nx@me.com"}]},"0.1.4":{"name":"codesurgeon","description":"Build JS files based on JS code extracted from files","version":"0.1.4","author":{"name":"Nodejitsu Inc","email":"info@nodejitsu.com"},"contributors":[{"name":"Paolo Fragomeni","email":"hij1nx@nodejitsu.com"}],"repository":{"type":"git","url":"git://github.com/hij1nx/codesurgeon.git"},"keywords":["build","deploy","devops"],"dependencies":{"uglify-js":"1.0.x","traverse":"0.5.x"},"devDependencies":{"colors":"0.5.x","nodeunit":"0.5.x"},"main":"./lib/codesurgeon","engines":{"node":">= 0.4.0"},"scripts":{"test":"nodeunit test/*-test.js"},"_npmJsonOpts":{"file":"/Users/paolo/.npm/codesurgeon/0.1.4/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"codesurgeon@0.1.4","_engineSupported":true,"_npmVersion":"1.0.27","_nodeVersion":"v0.4.10","_defaultsLoaded":true,"dist":{"shasum":"a412f80012221f7175aaf445d4d0a5fefc6af909","tarball":"https://registry.npmjs.org/codesurgeon/-/codesurgeon-0.1.4.tgz","integrity":"sha512-6rn3RRo2j1X94/mmPHAJW1HvrlZhg+6RORwQGcFHoUpwFfVmlwbcE4bLwa0Pylt22zm35U2k5eLF6NLXwsx3dA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCEswqIihIlk923sC61WFtqdn9iqqkLQXYcV2TcbxHmgwIhAMe0eT8SRbh7QJKzr+lZ7XZPXiedT5g/Sphs3x8Me4z+"}]},"maintainers":[{"name":"hij1nx","email":"hij1nx@me.com"}]},"0.1.5":{"name":"codesurgeon","description":"Build JS files based on JS code extracted from files","version":"0.1.5","author":{"name":"Nodejitsu Inc","email":"info@nodejitsu.com"},"contributors":[{"name":"Paolo Fragomeni","email":"hij1nx@nodejitsu.com"}],"repository":{"type":"git","url":"git://github.com/hij1nx/codesurgeon.git"},"keywords":["build","deploy","devops"],"dependencies":{"uglify-js":"1.0.x","traverse":"0.5.x"},"devDependencies":{"colors":"0.5.x","nodeunit":"0.5.x"},"main":"./lib/codesurgeon","engines":{"node":">= 0.4.0"},"scripts":{"test":"nodeunit test/*-test.js"},"_npmJsonOpts":{"file":"/Users/paolo/.npm/codesurgeon/0.1.5/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"codesurgeon@0.1.5","_engineSupported":true,"_npmVersion":"1.0.27","_nodeVersion":"v0.4.10","_defaultsLoaded":true,"dist":{"shasum":"9256f9c7da01aeecf87e127282f55356b50a05dd","tarball":"https://registry.npmjs.org/codesurgeon/-/codesurgeon-0.1.5.tgz","integrity":"sha512-dW9UehMYUMRH8hljRNDyAkrdMvEdmyEGVotEw4FxsAePN/Z25nVYJWNWHXm9hUEXvI+N2ZyGXu8YpS2Y77GcOA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGQJkaH97zMn3Gq+aqxhnHqrttwXMsAshp5ZgxnkTje/AiEA/mmJ81Sgy9ZBnJ/f669PEoQy33cbU09ifvFC7KayRJk="}]},"maintainers":[{"name":"hij1nx","email":"hij1nx@me.com"}]},"0.1.6":{"name":"codesurgeon","description":"Build JS files based on JS code extracted from files","version":"0.1.6","author":{"name":"Nodejitsu Inc","email":"info@nodejitsu.com"},"contributors":[{"name":"Paolo Fragomeni","email":"hij1nx@nodejitsu.com"}],"repository":{"type":"git","url":"git://github.com/hij1nx/codesurgeon.git"},"keywords":["build","deploy","devops"],"dependencies":{"uglify-js":"1.0.x","traverse":"0.5.x"},"devDependencies":{"colors":"0.5.x","nodeunit":"0.5.x"},"main":"./lib/codesurgeon","engines":{"node":">= 0.4.0"},"scripts":{"test":"nodeunit test/*-test.js"},"_npmJsonOpts":{"file":"/Users/paolo/.npm/codesurgeon/0.1.6/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"codesurgeon@0.1.6","_engineSupported":true,"_npmVersion":"1.0.27","_nodeVersion":"v0.4.10","_defaultsLoaded":true,"dist":{"shasum":"c3d873b450d7f814a5fdec5d517ff24388c39d4a","tarball":"https://registry.npmjs.org/codesurgeon/-/codesurgeon-0.1.6.tgz","integrity":"sha512-I+w+YNXP5vq1Q9ln/9MDdfIi0ImrSDd2+HgO0P8U2+xmMtnOKtHIfD1sl6GE17PCyzcaVqHlehBMhfX0Uu9VQg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGVVAXkJgaaD1XmwYnt9SQOj7VnwZl9G2PzQQfvR9TYWAiEAwUf2HC5aekp/+igsjwS/VAArs3W8DTsq+HFbqAaEs8s="}]},"maintainers":[{"name":"hij1nx","email":"hij1nx@me.com"}]},"0.1.7":{"name":"codesurgeon","description":"Build JS files based on JS code extracted from files","version":"0.1.7","author":{"name":"Nodejitsu Inc","email":"info@nodejitsu.com"},"contributors":[{"name":"Paolo Fragomeni","email":"hij1nx@nodejitsu.com"}],"repository":{"type":"git","url":"git://github.com/hij1nx/codesurgeon.git"},"keywords":["build","deploy","devops"],"dependencies":{"uglify-js":"1.0.x","traverse":"0.5.x"},"devDependencies":{"colors":"0.5.x","nodeunit":"0.5.x"},"main":"./lib/codesurgeon","engines":{"node":">= 0.4.0"},"scripts":{"test":"nodeunit test/*-test.js"},"_npmJsonOpts":{"file":"/Users/paolo/.npm/codesurgeon/0.1.7/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"codesurgeon@0.1.7","_engineSupported":true,"_npmVersion":"1.0.27","_nodeVersion":"v0.4.10","_defaultsLoaded":true,"dist":{"shasum":"ab499a6908592f605be78b004eb44d09e50e3a2c","tarball":"https://registry.npmjs.org/codesurgeon/-/codesurgeon-0.1.7.tgz","integrity":"sha512-bVkgAcTdJzDdR8Axgy2RM6xhiXbDbWFKofcalErBNsNPN8X4kJxYRsGcgICCy5zrWY0CK9OMkG6PPhmQVFsAKA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIErthZ48/dORChTQ+LexvJ1k5TdqIRLT8+3fnGnnmGCFAiBsQ8BRyevFe2Ma/t2ZF+sdM3Hw45RFGQEHT/wKtGDrMw=="}]},"maintainers":[{"name":"hij1nx","email":"hij1nx@me.com"}]},"0.1.8":{"name":"codesurgeon","description":"Build JS files based on JS code extracted from files","version":"0.1.8","author":{"name":"Nodejitsu Inc","email":"info@nodejitsu.com"},"contributors":[{"name":"Paolo Fragomeni","email":"hij1nx@nodejitsu.com"}],"repository":{"type":"git","url":"git://github.com/hij1nx/codesurgeon.git"},"keywords":["build","deploy","devops"],"dependencies":{"uglify-js":"1.0.x","traverse":"0.5.x"},"devDependencies":{"colors":"0.5.x","nodeunit":"0.5.x"},"main":"./lib/codesurgeon","engines":{"node":">= 0.4.0"},"scripts":{"test":"nodeunit test/*-test.js"},"_npmJsonOpts":{"file":"/Users/paolo/.npm/codesurgeon/0.1.8/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"codesurgeon@0.1.8","_engineSupported":true,"_npmVersion":"1.0.27","_nodeVersion":"v0.4.10","_defaultsLoaded":true,"dist":{"shasum":"0ae23d87ce481b97d34e2a6ac39da7f413d19e1d","tarball":"https://registry.npmjs.org/codesurgeon/-/codesurgeon-0.1.8.tgz","integrity":"sha512-Z+mVpEoylxYid6b+9Y4TCzBXmaZiJuMhUVTJw/BXheSykU3iP2kYehnyrIQjOmvZMuUGAksc8WAoGEO5Q/dSGw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD0G9BfxmATBEfyT/sSq6vbRppiQtIv+BnD0hYCWanhbgIhAKc3RTKaOTt7ArkXeIb+4Y2LF4TdCrkmqTAXUaaAsLWl"}]},"maintainers":[{"name":"hij1nx","email":"hij1nx@me.com"}]},"0.2.0":{"name":"codesurgeon","description":"Build JS files based on JS code extracted from files","version":"0.2.0","author":{"name":"Nodejitsu Inc","email":"info@nodejitsu.com"},"contributors":[{"name":"Paolo Fragomeni","email":"hij1nx@nodejitsu.com"}],"repository":{"type":"git","url":"git://github.com/hij1nx/codesurgeon.git"},"keywords":["build","deploy","devops"],"dependencies":{"uglify-js":"1.0.x","traverse":"0.5.x","jslintcore":"*","jshint":"0.5.x"},"devDependencies":{"colors":"0.5.x","nodeunit":"0.5.x"},"main":"./lib/codesurgeon","engines":{"node":">= 0.4.0"},"scripts":{"test":"nodeunit test/*-test.js"},"_npmUser":{"name":"hij1nx","email":"hij1nx@me.com"},"_id":"codesurgeon@0.2.0","_engineSupported":true,"_npmVersion":"1.0.99","_nodeVersion":"v0.5.10","_defaultsLoaded":true,"dist":{"shasum":"e0ac42c5a8c6fa208519640e3a87668dbef9eed3","tarball":"https://registry.npmjs.org/codesurgeon/-/codesurgeon-0.2.0.tgz","integrity":"sha512-rvPkLuJRcfTSNH+AT/vDOwCiMthYu8kYpIK6cChnzI8ngonJuPrpO5ZuqRb0+VDiTqxM9qcnljntFmsa56Z4Yg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHf2XWNe/bVAtiCp7Txt0mnAPyRm/9diE02+8/gOJjwwAiEA2N6e9jYX1lhBHg5zl46TvulApX+rMicI5yLliKeLvqM="}]},"maintainers":[{"name":"hij1nx","email":"hij1nx@me.com"}]},"0.2.1":{"name":"codesurgeon","description":"Build JS files based on JS code extracted from files","version":"0.2.1","author":{"name":"Nodejitsu Inc","email":"info@nodejitsu.com"},"contributors":[{"name":"Paolo Fragomeni","email":"hij1nx@nodejitsu.com"}],"repository":{"type":"git","url":"git://github.com/hij1nx/codesurgeon.git"},"keywords":["build","deploy","devops"],"dependencies":{"uglify-js":"1.0.x","traverse":"0.5.x","jslint-core":"*","eyes":"*","jshint":"0.5.x"},"devDependencies":{"colors":"0.5.x","nodeunit":"0.5.x"},"main":"./lib/codesurgeon","engines":{"node":">= 0.4.0"},"scripts":{"test":"nodeunit test/*-test.js"},"_npmUser":{"name":"hij1nx","email":"hij1nx@me.com"},"_id":"codesurgeon@0.2.1","_engineSupported":true,"_npmVersion":"1.0.99","_nodeVersion":"v0.5.10","_defaultsLoaded":true,"dist":{"shasum":"df0506dd941247d8a36b6fe40cd733b0871c7f62","tarball":"https://registry.npmjs.org/codesurgeon/-/codesurgeon-0.2.1.tgz","integrity":"sha512-73DLwo5r5krSLXeNXawwdxuxZxMdIlVOWyBAbeGKnUtrZCJ6TijwsTyDKHm6vbBT7ixK4GZemz8wjApbp5wQHg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB1hpgB1oGAJ/Xca4/cyrWToahSGQ+7/Ca0y9MoaAEoPAiEAvAdArRmQEHSyEjdEp9s9beHQEO8bMHgFUDVh1WOyHSc="}]},"maintainers":[{"name":"hij1nx","email":"hij1nx@me.com"}]},"0.2.2":{"name":"codesurgeon","description":"Build JS files based on JS code extracted from files","version":"0.2.2","author":{"name":"Nodejitsu Inc","email":"info@nodejitsu.com"},"contributors":[{"name":"Paolo Fragomeni","email":"hij1nx@nodejitsu.com"}],"repository":{"type":"git","url":"git://github.com/hij1nx/codesurgeon.git"},"keywords":["build","deploy","devops"],"dependencies":{"uglify-js":"1.0.x","pkginfo":"*","flatiron":"*","traverse":"0.5.x","jslint-core":"*","eyes":"*","colors":"*","jshint":"0.5.x"},"devDependencies":{"colors":"0.5.x","nodeunit":"0.6.x"},"main":"./lib/codesurgeon","scripts":{"test":"nodeunit test/*-test.js"},"engines":{"node":">= 0.4.0"},"_npmUser":{"name":"hij1nx","email":"hij1nx@me.com"},"_id":"codesurgeon@0.2.2","optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.0-3","_nodeVersion":"v0.6.9","_defaultsLoaded":true,"dist":{"shasum":"c3875016c43f0927025331e7d70a99344c813a86","tarball":"https://registry.npmjs.org/codesurgeon/-/codesurgeon-0.2.2.tgz","integrity":"sha512-USMkJTXFNhxYkGH4SzW4YH6pEDWt5Mo5mgBC2a33lajSHtqPqyEO5W6/9xNBxzUW8++krzJ7NwyT6FnV1NEgCQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDK0uCAriido1Ns75/z2a9zH3Dkzwah0tk2/EEqPlSvUgIgPiNkX3q4/U3mMHeWK7KOnjQxq6IzNI6nHjx6w+oOfIM="}]},"readme":"<br/>\n<img src=\"http://github.com/hij1nx/codesurgeon/raw/master/logo.png\">\n\n# Synopsis\nA build automation tool that allows you to aggregate, manipulate, refine and finalize a code base.\n\n# Motivation\nA build automation tool specifically made for Node.js.\n\n# How it works\nCodesurgon reads files and/or piped input into an input buffer. The input buffer is the source used to create the output.\n\n# Features\n - Precision extraction of functions or variables from the input buffer\n  - Rename extracted items as they are extracted\n  - Control the depth at which variables and function are searched for\n  - Extract any arbitrary value\n - Read in multiple files and or piped data into a buffer\n - Hint and or Lint on the buffer of code\n - Automatically wrap the buffer in a closure that can detect the javascript environment\n - Exploits your `package.json` to create versioned output filenames and up to date build comments\n - Concatenate files and piped data\n - Chainable and asynchronous APIs\n\n# Installation\n\n```bash\n$npm install codesurgeon\n```\n\n# Usage\nWrite a javascript file and run it.\n\n```bash\n$node mybuildscript.js\n```\n\nCodesurgeon will appreciate piped input!\n\n```bash\n$cat myfile1.js myfile2.js | node mybuildfile.js\n```\n\n## Synchronous example\nAll writes are done synchronously by default (can be done asynchronously), so you can chain them. Here are a few examples. Here is a Build script examples using the above source file\n\n```js\nvar Codesurgeon = require('codesurgeon').Codesurgeon;\nvar surgeon = new Codesurgeon;    // make an instance\n\nsurgeon\n  .configure({                    // lets add some configuration options!\n    quiet: true,                  // don't output the status of each task\n    package: '../package.json'    // read my package.json and use it for version numbers etc.\n  })\n  .read('/src.js')                // add one or more files to add to the buffer\n  .extract(                       // specify the names in the order we want them to be compiled\n    'B',\n    'a'\n  )\n  .write(__dirname + '/dest.js'); // write the buffer to a file\n```\n\n## Asynchronous example\nRead and write methods can be used asynchronously by adding a callback!\n\n```js\n  surgeon\n    .configure({\n      quiet: true,\n      package: '../package.json'\n    })\n    .read(\n      '/src1.js',\n      '/src2.js',\n      function() { // callback to fire after reading...\n\n        //\n        // calling `extract` without parameters would extract everything from the buffer.\n        //\n        this.extract(\n          'B', \n          'a'\n        );\n\n        this.write(__dirname + '/dest.js');\n\n      }\n    );\n```\n\n### Source file\n\n```js\nfunction A() { return 'A'; }\nfunction B() { return 'B'; }\nvar a = 100 + 100;\nvar b = 100 + 100;\nfunction C() { return 'C'; }\n```\n\n### Destination File \nUses the specified `package.json` to add a header and change the filename to include the version number.\n\n```js\n//\n// Generated on Thu Sep 29 2012 12:29:42 GMT-0400 (EDT) by Codesurgeon.\n// Version 0.1.6\n//\n\nfunction B() { return 'B'; }\nvar a = 100 + 100;\n```\n\n## Extract-Code-As\nIt is easy to change the name of an item that is extracted!\n\n```js\nsurgeon\n  .read(\n    '/dummy1.js', \n    '/dummy2.js'\n  )\n  .extract(\n    'A',\n    ['C', 'D'] // rename the item (works with dot notation too)\n  );\n```\n\n### Destination File\n\n```js\n//\n// Generated on Thu Sep 29 2011 12:29:42 GMT-0400 (EDT) by Codesurgeon.\n// Version 0.1.6\n//\nfunction A() { return 'A'; }\nfunction D() { return 'C'; } // this has been renamed\n```\n\n## Automatic Wrapping\nWhen compiling a script that will be used in multiple environments, you often want to wrap the code in a closure that will detect the correct environment and pass it in.\n\n### Source file\n\n```js\nfunction A() { ... }\n```\n\n### Destination file\nContains a closure that is passed the object relevant to the environment. See the API reference below to change the arguments or detection expression.\n\n```js\n(function(exports) {\n  function A() { ... }\n}(typeof process !== \"undefined\" && process.title ? module : window));\n\n```\n\n# API\n\n## Constructor\nThe constructor function provides an instance of the Codesurgen.\n\n### Codesurgeon()\n```\n  function Codesurgeon(conf)\n  \n  @param conf {Object} a json object literal that can contain configuration options.\n    @member encoding {String} the encoding that will be used to product the result.\n    @member quiet {String} indicate how much logging you want Codesurgen to produce.\n```\n\n## Instance Methods\n\n### configure()\nAllows you to pass configuration settings to the instance, helpful as you chain together methods.\n\n```\n  function configure(conf)\n  \n  @param conf {Object} a json object literal that can contain configuration options.\n```\n\n### package()\nCapture package details of a `package.json` file. Used in concert with the `write` method. The write method will attempt to read the file and \n\n```\n  function package(path)\n  \n  @param path {String} a path to a valid `package.json` file.\n```\n\n### read()\nRead one or more files from disk.\n\n```\n  function read(file [, file, ...])\n  \n  @param file {String} a string that represent the locations of a file.\n```\n\n### clear()\nProvides the means to clear the input and or output buffers before the next read and write.\n\n```\n  function clear(option)\n  \n  @param option {String} A string that identifies the buffer to be cleared.\n```\n\n### wrap()\nWraps the code in a closure.\n\n```\n  function wrap(conf)\n  \n  @param conf {Object} a json object literal that can contain configuration options.\n  \n  @param outer {String} code that will be appended outside of the closure.\n  \n  @param before {String} a string of code to prepend to the body of the closure.\n  \n  @param after {String} a string of code to append to the body of the closure.\n  \n  @param params {String} the parameters that you want to pass to the closure\n  \n  @param signature {String} the method signature (parameters that go inside the closure's \n  parenthesis e.g. `function(foo, bar, bazz)` where \"foo, bar, bazz\" is the signature).\n```\n\n### extract(...methods) // WITHOUT PARAMETERS WILL GET EVERYTHING\nSpecifies the methods to extract from the files that have been read. You can specify a simple variable or function name such as `myMethod` or you can be specific about the item you are looking for, e.g. `MyConstructor.prototype.foo`. This is helpful in the case where you have another method named `foo` that might occur beforehand, e.g. `OtherConstructor.prototype.foo`.\n\n```\n  function extract(methods [, methods, ...])\n  \n  @param methods {String} a series of strings that represent the methods that can be found in the code that has been read by the `read` method.\n```\n\n\n### write()\nWrite the output to a file.\n\n```\n  function write(file)\n  \n  @param file {String} a file name that will be created or overwritten.\n```\n\n### append()\nWrite the output to a file.\n\n```\n  function append(file)\n  \n  @file {String} a file name that will be appended to.\n```\n\n### uglify()\nCompacts and/or obfuscates the code.\n\n```\n  function uglify(conf)\n  \n  @param conf {Object} a json object literal that can contain configuration options.\n  \n    @member squeeze {String} Applies various compression techniques. It expects an AST \n    (as returned by parse-js) and returns a new, compatible AST (possibly sharing \n    structure with the original one!).\n    \n    @member mangle {String} This option is careful not to affect the semantics of the code. \n    It will avoid renaming undeclared variables (which could possibly be defined in some \n    other script), and avoid renaming names that are under the influence of a with block, \n    or within the context of an eval call.\n```\n\n### lint()\nProvides strict javascript validation according to Duglass Crockford's JSLint specification (https://github.com/douglascrockford/JSLint)\n\n```\n  function lint(success [, fail, options])\n  \n  @param success {Function} a callback that will be executed if the code passed the requirements \n  of the lint parser.\n\n  @param fail {Function} optional, a callback that will be executed if the code failed the \n  requirements of the lint parser.\n\n  @param options {Object} optional, an object literal containing the options that are supported \n  by the parser.\n```\n\nMost of the options are booleans: They are all optional and have a default value of false. One of the options, predef, can be an array of names, which will be used to declare global variables, or an object whose keys are used as global names, with a boolean value that determines if they are assignable. If the code is not valid, you will see a print out of the issues that were found. The format of the errors will be printed in the form of an array of objects containing these members:\n\n```js\n{\n    line      : The line (relative to 0) at which the lint was found\n    character : The character (relative to 0) at which the lint was found\n    reason    : The problem\n    evidence  : The text line in which the problem occurred\n    raw       : The raw message before the details were inserted\n    a         : The first detail\n    b         : The second detail\n    c         : The third detail\n    d         : The fourth detail\n}\n```\n\n### hint()\nLess Strict javascript validation according to JSHint, a community-driven tool to detect errors in JavaScript code. (https://github.com/jshint)\n\n```\n  function hint(success [, fail, options])\n  @param success {Function} a callback that will be executed if the code passed the requirements \n  of the lint parser.\n  \n  @param fail {Function} optional, a callback that will be executed if the code failed the \n  requirements of the lint parser.\n  \n  @param options {Object} optional, an object literal containing the options that are supported \n  by the parser.\n```\n\n# Licence\n(The MIT License)\n\nCopyright (c) 2010 hij1nx <http://www.twitter.com/hij1nx>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","maintainers":[{"name":"hij1nx","email":"hij1nx@me.com"}]},"0.3.0":{"name":"codesurgeon","description":"Build JS files based on JS code extracted from files","version":"0.3.0","author":{"name":"Nodejitsu Inc","email":"info@nodejitsu.com"},"contributors":[{"name":"Paolo Fragomeni","email":"hij1nx@nodejitsu.com"}],"repository":{"type":"git","url":"git://github.com/hij1nx/codesurgeon.git"},"keywords":["build","deploy","devops"],"dependencies":{"uglify-js":"1.0.x","pkginfo":"*","flatiron":"*","traverse":"0.5.x","jslint-core":"*","eyes":"*","colors":"*","jshint":"0.5.x"},"devDependencies":{"colors":"0.5.x","nodeunit":"0.6.x"},"main":"./lib/codesurgeon","scripts":{"test":"nodeunit test/*-test.js"},"engines":{"node":">= 0.4.0"},"_npmUser":{"name":"hij1nx","email":"hij1nx@me.com"},"_id":"codesurgeon@0.3.0","optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.0-3","_nodeVersion":"v0.6.9","_defaultsLoaded":true,"dist":{"shasum":"3723ebfa43bd6363cfb946ee5acc521bad596af2","tarball":"https://registry.npmjs.org/codesurgeon/-/codesurgeon-0.3.0.tgz","integrity":"sha512-88PJjHA8wLpQKE6+q9m7MxWGgQIb6X94L7TP6nuktVsTzT5nznfjOApAtNgzmqvY1ayg0nRBEe9RTb1ouVdu0g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDgSSZAQ+XpQs/tdL5JoXgAkdJGKolBqIKrxfsj5OfQKgIhAPWkv/uwICdmmE/4NZG4VqHHvBwQngaD4rq0HhW0mLHt"}]},"readme":"<br/>\n<img src=\"http://github.com/hij1nx/codesurgeon/raw/master/logo.png\">\n\n# Synopsis\nA build automation tool that allows you to aggregate, manipulate, refine and finalize a code base.\n\n# Motivation\nA build automation tool specifically made for Node.js.\n\n# How it works\nCodesurgon reads files and/or piped input into a buffer. The buffer is used as the source used to create output.\n\n# Features\n - Precision extraction of functions or variables from the input buffer\n  - Rename functions or variables as they are extracted\n  - Control the depth at which variables and function are searched for\n  - Extract any arbitrary value\n - Read multiple files and piped data to the input buffer\n - Concatenate files and piped data\n - Automatically wrap the output in a closure that can detect the javascript environment\n - Hint and or Lint the output\n - Reads your `package.json` to create versioned output filenames and up to date build comments\n - Chainable and asynchronous APIs\n\n# Installation\n\n```bash\n$npm install codesurgeon\n```\n\n# Usage\nWrite a javascript file and run it.\n\n```bash\n$node mybuildscript.js\n```\n\nCodesurgeon will appreciate piped input!\n\n```bash\n$cat myfile1.js myfile2.js | node mybuildfile.js\n```\n\n## Synchronous example\nAll writes are done synchronously by default (can be done asynchronously), so you can chain them. Here are a few examples. Here is a Build script examples using the above source file\n\n```js\nvar Codesurgeon = require('codesurgeon').Codesurgeon;\nvar surgeon = new Codesurgeon;    // make an instance\n\nsurgeon\n  .configure({                    // lets add some configuration options!\n    quiet: true,                  // don't output the status of each task\n    package: '../package.json'    // read my package.json and use it for version numbers etc.\n  })\n  .read('/src.js')                // add one or more files to add to the buffer\n  .extract(                       // specify the names in the order we want them to be compiled\n    'B',\n    'a'\n  )\n  .write(__dirname + '/dest.js'); // write the buffer to a file\n```\n\n## Asynchronous example\nRead and write methods can be used asynchronously by adding a callback!\n\n```js\n  surgeon\n    .configure({\n      quiet: true,\n      package: '../package.json'\n    })\n    .read(\n      '/*.js',\n      function() { // callback to fire after reading...\n\n        //\n        // calling `extract` without parameters would extract everything from the buffer.\n        //\n        this.extract(\n          'B', \n          'a'\n        );\n\n        this.write(__dirname + '/dest.js');\n\n      }\n    );\n```\n\n### Source file\n\n```js\nfunction A() { return 'A'; }\nfunction B() { return 'B'; }\nvar a = 100 + 100;\nvar b = 100 + 100;\nfunction C() { return 'C'; }\n```\n\n### Destination File \nUses the specified `package.json` to add a header and change the filename to include the version number.\n\n```js\n//\n// Generated on Thu Sep 29 2012 12:29:42 GMT-0400 (EDT) by Codesurgeon.\n// Version 0.1.6\n//\n\nfunction B() { return 'B'; }\nvar a = 100 + 100;\n```\n\n## Extract-Code-As\nIt is easy to change the name of an item that is extracted!\n\n```js\nsurgeon\n  .read(\n    '/dummy1.js', \n    '/dummy2.js'\n  )\n  .extract(\n    'A',\n    ['C', 'D'] // rename the item (works with dot notation too)\n  );\n```\n\n### Destination File\n\n```js\n//\n// Generated on Thu Sep 29 2011 12:29:42 GMT-0400 (EDT) by Codesurgeon.\n// Version 0.1.6\n//\nfunction A() { return 'A'; }\nfunction D() { return 'C'; } // this has been renamed\n```\n\n## Automatic Wrapping\nWhen compiling a script that will be used in multiple environments, you often want to wrap the code in a closure that will detect the correct environment and pass it in.\n\n### Source file\n\n```js\nfunction A() { ... }\n```\n\n### Destination file\nContains a closure that is passed the object relevant to the environment. See the API reference below to change the arguments or detection expression.\n\n```js\n(function(exports) {\n  function A() { ... }\n}(typeof process !== \"undefined\" && process.title ? module : window));\n\n```\n\n# API\n\n## Constructor\nThe constructor function provides an instance of the Codesurgen.\n\n### Codesurgeon()\n```\n  function Codesurgeon(conf)\n  \n  @param conf {Object} a json object literal that can contain configuration options.\n    @member encoding {String} the encoding that will be used to product the result.\n    @member quiet {String} indicate how much logging you want Codesurgen to produce.\n```\n\n## Instance Methods\n\n### configure()\nAllows you to pass configuration settings to the instance, helpful as you chain together methods.\n\n```\n  function configure(conf)\n  \n  @param conf {Object} a json object literal that can contain configuration options.\n```\n\n### package()\nCapture package details of a `package.json` file. Used in concert with the `write` method. The write method will attempt to read the file and \n\n```\n  function package(path)\n  \n  @param path {String} a path to a valid `package.json` file.\n```\n\n### read()\nRead one or more files from disk. Accepts wild cards in the filename, eg. `*-test.js`.\n\n```\n  function read(file [, file, ...])\n  \n  @param file {String} a string that represent the locations of a file.\n```\n\n### clear()\nProvides the means to clear the input and or output buffers before the next read and write.\n\n```\n  function clear(option)\n  \n  @param option {String} A string that identifies the buffer to be cleared.\n```\n\n### wrap()\nWraps the code in a closure.\n\n```\n  function wrap(conf)\n  \n  @param conf {Object} a json object literal that can contain configuration options.\n  \n  @param outer {String} code that will be appended outside of the closure.\n  \n  @param before {String} a string of code to prepend to the body of the closure.\n  \n  @param after {String} a string of code to append to the body of the closure.\n  \n  @param params {String} the parameters that you want to pass to the closure\n  \n  @param signature {String} the method signature (parameters that go inside the closure's \n  parenthesis e.g. `function(foo, bar, bazz)` where \"foo, bar, bazz\" is the signature).\n```\n\n### extract(...methods) // WITHOUT PARAMETERS WILL GET EVERYTHING\nSpecifies the methods to extract from the files that have been read. You can specify a simple variable or function name such as `myMethod` or you can be specific about the item you are looking for, e.g. `MyConstructor.prototype.foo`. This is helpful in the case where you have another method named `foo` that might occur beforehand, e.g. `OtherConstructor.prototype.foo`.\n\n```\n  function extract(methods [, methods, ...])\n  \n  @param methods {String} a series of strings that represent the methods that can be found in the code that has been read by the `read` method.\n```\n\n\n### write()\nWrite the output to a file.\n\n```\n  function write(file)\n  \n  @param file {String} a file name that will be created or overwritten.\n```\n\n### append()\nWrite the output to a file.\n\n```\n  function append(file)\n  \n  @file {String} a file name that will be appended to.\n```\n\n### uglify()\nCompacts and/or obfuscates the code.\n\n```\n  function uglify(conf)\n  \n  @param conf {Object} a json object literal that can contain configuration options.\n  \n    @member squeeze {String} Applies various compression techniques. It expects an AST \n    (as returned by parse-js) and returns a new, compatible AST (possibly sharing \n    structure with the original one!).\n    \n    @member mangle {String} This option is careful not to affect the semantics of the code. \n    It will avoid renaming undeclared variables (which could possibly be defined in some \n    other script), and avoid renaming names that are under the influence of a with block, \n    or within the context of an eval call.\n```\n\n### lint()\nProvides strict javascript validation according to Duglass Crockford's JSLint specification (https://github.com/douglascrockford/JSLint)\n\n```\n  function lint(success [, fail, options])\n  \n  @param success {Function} a callback that will be executed if the code passed the requirements \n  of the lint parser.\n\n  @param fail {Function} optional, a callback that will be executed if the code failed the \n  requirements of the lint parser.\n\n  @param options {Object} optional, an object literal containing the options that are supported \n  by the parser.\n```\n\nMost of the options are booleans: They are all optional and have a default value of false. One of the options, predef, can be an array of names, which will be used to declare global variables, or an object whose keys are used as global names, with a boolean value that determines if they are assignable. If the code is not valid, you will see a print out of the issues that were found. The format of the errors will be printed in the form of an array of objects containing these members:\n\n```js\n{\n    line      : The line (relative to 0) at which the lint was found\n    character : The character (relative to 0) at which the lint was found\n    reason    : The problem\n    evidence  : The text line in which the problem occurred\n    raw       : The raw message before the details were inserted\n    a         : The first detail\n    b         : The second detail\n    c         : The third detail\n    d         : The fourth detail\n}\n```\n\n### hint()\nLess Strict javascript validation according to JSHint, a community-driven tool to detect errors in JavaScript code. (https://github.com/jshint)\n\n```\n  function hint(success [, fail, options])\n  @param success {Function} a callback that will be executed if the code passed the requirements \n  of the lint parser.\n  \n  @param fail {Function} optional, a callback that will be executed if the code failed the \n  requirements of the lint parser.\n  \n  @param options {Object} optional, an object literal containing the options that are supported \n  by the parser.\n```\n\n# Licence\n(The MIT License)\n\nCopyright (c) 2010 hij1nx <http://www.twitter.com/hij1nx>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","maintainers":[{"name":"hij1nx","email":"hij1nx@me.com"}]},"0.3.1":{"name":"codesurgeon","description":"Build JS files based on JS code extracted from files","version":"0.3.1","author":{"name":"Nodejitsu Inc","email":"info@nodejitsu.com"},"contributors":[{"name":"Paolo Fragomeni","email":"hij1nx@nodejitsu.com"}],"repository":{"type":"git","url":"git://github.com/hij1nx/codesurgeon.git"},"keywords":["build","deploy","devops"],"dependencies":{"uglify-js":"1.0.x","pkginfo":"*","flatiron":"*","traverse":"0.5.x","findit":"*","jslint-core":"*","eyes":"*","colors":"*","jshint":"0.5.x"},"devDependencies":{"colors":"0.5.x","nodeunit":"0.6.x"},"main":"./lib/codesurgeon","scripts":{"test":"nodeunit test/*-test.js"},"engines":{"node":">= 0.4.0"},"_npmUser":{"name":"hij1nx","email":"hij1nx@me.com"},"_id":"codesurgeon@0.3.1","optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.0-3","_nodeVersion":"v0.6.9","_defaultsLoaded":true,"dist":{"shasum":"dcc039da399b0214f2af5171f24f6c2ea882a943","tarball":"https://registry.npmjs.org/codesurgeon/-/codesurgeon-0.3.1.tgz","integrity":"sha512-A5eeJzVfpbdYRJH+31RPNpYb7/tjkO5nBYaQAEmWXcU6wRCo8Z4yEJBfvlwx7tnSzKvg66ufgC8Hl4vhkj6TMg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB98SNWzWuEIn54dY6olAeyYXlLjpRs4QYxsZBCXtf5iAiB7h2ynzRwR7AVLaROG39Z5shkIfg6w33jZmvaN9umssw=="}]},"readme":"<br/>\n<img src=\"http://github.com/hij1nx/codesurgeon/raw/master/logo.png\">\n\n# Synopsis\nA build automation tool that allows you to aggregate, manipulate, refine and finalize a code base.\n\n# Motivation\nA build automation tool specifically made for Node.js.\n\n# How it works\nCodesurgon reads files and/or piped input into a buffer. The buffer is used as the source used to create output.\n\n# Features\n - Precision extraction of functions or variables from the input buffer\n  - Rename functions or variables as they are extracted\n  - Control the depth at which variables and function are searched for\n  - Extract any arbitrary value\n - Read multiple files and piped data to the input buffer\n - Concatenate files and piped data\n - Automatically wrap the output in a closure that can detect the javascript environment\n - Hint and or Lint the output\n - Reads your `package.json` to create versioned output filenames and up to date build comments\n - Chainable and asynchronous APIs\n\n# Installation\n\n```bash\n$npm install codesurgeon\n```\n\n# Usage\nWrite a javascript file and run it.\n\n```bash\n$node mybuildscript.js\n```\n\nCodesurgeon will appreciate piped input!\n\n```bash\n$cat myfile1.js myfile2.js | node mybuildfile.js\n```\n\n## Synchronous example\nAll writes are done synchronously by default (can be done asynchronously), so you can chain them. Here are a few examples. Here is a Build script examples using the above source file\n\n```js\nvar Codesurgeon = require('codesurgeon').Codesurgeon;\nvar surgeon = new Codesurgeon;    // make an instance\n\nsurgeon\n  .configure({                    // lets add some configuration options!\n    quiet: true,                  // don't output the status of each task\n    package: '../package.json'    // read my package.json and use it for version numbers etc.\n  })\n  .read('/*.js')                  // add one or more files to add to the buffer\n  .extract(                       // specify the names in the order we want them to be compiled\n    'B',\n    'a'\n  )\n  .write(__dirname + '/dest.js'); // write the buffer to a file\n```\n\n## Asynchronous example\nRead and write methods can be used asynchronously by adding a callback!\n\n```js\n  surgeon\n    .configure({\n      quiet: true,\n      package: '../package.json'\n    })\n    .read(\n      '/*.js',\n      function() { // callback to fire after reading...\n\n        //\n        // calling `extract` without parameters would extract everything from the buffer.\n        //\n        this.extract(\n          'B', \n          'a'\n        );\n\n        this.write(__dirname + '/dest.js');\n\n      }\n    );\n```\n\n### Source file\n\n```js\nfunction A() { return 'A'; }\nfunction B() { return 'B'; }\nvar a = 100 + 100;\nvar b = 100 + 100;\nfunction C() { return 'C'; }\n```\n\n### Destination File \nUses the specified `package.json` to add a header and change the filename to include the version number.\n\n```js\n//\n// Generated on Thu Sep 29 2012 12:29:42 GMT-0400 (EDT) by Codesurgeon.\n// Version 0.1.6\n//\n\nfunction B() { return 'B'; }\nvar a = 100 + 100;\n```\n\n## Extract-Code-As\nIt is easy to change the name of an item that is extracted!\n\n```js\nsurgeon\n  .read(\n    '/dummy1.js', \n    '/dummy2.js'\n  )\n  .extract(\n    'A',\n    ['C', 'D'] // rename the item (works with dot notation too)\n  );\n```\n\n### Destination File\n\n```js\n//\n// Generated on Thu Sep 29 2011 12:29:42 GMT-0400 (EDT) by Codesurgeon.\n// Version 0.1.6\n//\nfunction A() { return 'A'; }\nfunction D() { return 'C'; } // this has been renamed\n```\n\n## Automatic Wrapping\nWhen compiling a script that will be used in multiple environments, you often want to wrap the code in a closure that will detect the correct environment and pass it in.\n\n### Source file\n\n```js\nfunction A() { ... }\n```\n\n### Destination file\nContains a closure that is passed the object relevant to the environment. See the API reference below to change the arguments or detection expression.\n\n```js\n(function(exports) {\n  function A() { ... }\n}(typeof process !== \"undefined\" && process.title ? module : window));\n\n```\n\n# API\n\n## Constructor\nThe constructor function provides an instance of the Codesurgen.\n\n### Codesurgeon()\n```\n  function Codesurgeon(conf)\n  \n  @param conf {Object} a json object literal that can contain configuration options.\n    @member encoding {String} the encoding that will be used to product the result.\n    @member quiet {String} indicate how much logging you want Codesurgen to produce.\n```\n\n## Instance Methods\n\n### configure()\nAllows you to pass configuration settings to the instance, helpful as you chain together methods.\n\n```\n  function configure(conf)\n  \n  @param conf {Object} a json object literal that can contain configuration options.\n```\n\n### package()\nCapture package details of a `package.json` file. Used in concert with the `write` method. The write method will attempt to read the file and \n\n```\n  function package(path)\n  \n  @param path {String} a path to a valid `package.json` file.\n```\n\n### read()\nRead one or more files from disk. Accepts wild cards in the filename, eg. `*-test.js`.\n\n```\n  function read(file [, file, ...])\n  \n  @param file {String} a string that represent the locations of a file.\n```\n\n### clear()\nProvides the means to clear the input and or output buffers before the next read and write.\n\n```\n  function clear(option)\n  \n  @param option {String} A string that identifies the buffer to be cleared.\n```\n\n### wrap()\nWraps the code in a closure.\n\n```\n  function wrap(conf)\n  \n  @param conf {Object} a json object literal that can contain configuration options.\n  \n  @param outer {String} code that will be appended outside of the closure.\n  \n  @param before {String} a string of code to prepend to the body of the closure.\n  \n  @param after {String} a string of code to append to the body of the closure.\n  \n  @param params {String} the parameters that you want to pass to the closure\n  \n  @param signature {String} the method signature (parameters that go inside the closure's \n  parenthesis e.g. `function(foo, bar, bazz)` where \"foo, bar, bazz\" is the signature).\n```\n\n### extract(...methods) // WITHOUT PARAMETERS WILL GET EVERYTHING\nSpecifies the methods to extract from the files that have been read. You can specify a simple variable or function name such as `myMethod` or you can be specific about the item you are looking for, e.g. `MyConstructor.prototype.foo`. This is helpful in the case where you have another method named `foo` that might occur beforehand, e.g. `OtherConstructor.prototype.foo`.\n\n```\n  function extract(methods [, methods, ...])\n  \n  @param methods {String} a series of strings that represent the methods that can be found in the code that has been read by the `read` method.\n```\n\n\n### write()\nWrite the output to a file.\n\n```\n  function write(file)\n  \n  @param file {String} a file name that will be created or overwritten.\n```\n\n### append()\nWrite the output to a file.\n\n```\n  function append(file)\n  \n  @file {String} a file name that will be appended to.\n```\n\n### uglify()\nCompacts and/or obfuscates the code.\n\n```\n  function uglify(conf)\n  \n  @param conf {Object} a json object literal that can contain configuration options.\n  \n    @member squeeze {String} Applies various compression techniques. It expects an AST \n    (as returned by parse-js) and returns a new, compatible AST (possibly sharing \n    structure with the original one!).\n    \n    @member mangle {String} This option is careful not to affect the semantics of the code. \n    It will avoid renaming undeclared variables (which could possibly be defined in some \n    other script), and avoid renaming names that are under the influence of a with block, \n    or within the context of an eval call.\n```\n\n### lint()\nProvides strict javascript validation according to Duglass Crockford's JSLint specification (https://github.com/douglascrockford/JSLint)\n\n```\n  function lint(success [, fail, options])\n  \n  @param success {Function} a callback that will be executed if the code passed the requirements \n  of the lint parser.\n\n  @param fail {Function} optional, a callback that will be executed if the code failed the \n  requirements of the lint parser.\n\n  @param options {Object} optional, an object literal containing the options that are supported \n  by the parser.\n```\n\nMost of the options are booleans: They are all optional and have a default value of false. One of the options, predef, can be an array of names, which will be used to declare global variables, or an object whose keys are used as global names, with a boolean value that determines if they are assignable. If the code is not valid, you will see a print out of the issues that were found. The format of the errors will be printed in the form of an array of objects containing these members:\n\n```js\n{\n    line      : The line (relative to 0) at which the lint was found\n    character : The character (relative to 0) at which the lint was found\n    reason    : The problem\n    evidence  : The text line in which the problem occurred\n    raw       : The raw message before the details were inserted\n    a         : The first detail\n    b         : The second detail\n    c         : The third detail\n    d         : The fourth detail\n}\n```\n\n### hint()\nLess Strict javascript validation according to JSHint, a community-driven tool to detect errors in JavaScript code. (https://github.com/jshint)\n\n```\n  function hint(success [, fail, options])\n  @param success {Function} a callback that will be executed if the code passed the requirements \n  of the lint parser.\n  \n  @param fail {Function} optional, a callback that will be executed if the code failed the \n  requirements of the lint parser.\n  \n  @param options {Object} optional, an object literal containing the options that are supported \n  by the parser.\n```\n\n# Licence\n(The MIT License)\n\nCopyright (c) 2010 hij1nx <http://www.twitter.com/hij1nx>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","maintainers":[{"name":"hij1nx","email":"hij1nx@me.com"}]},"0.3.2":{"name":"codesurgeon","description":"The Node.js build tool","version":"0.3.2","author":{"name":"Nodejitsu Inc","email":"info@nodejitsu.com"},"contributors":[{"name":"Paolo Fragomeni","email":"hij1nx@nodejitsu.com"}],"repository":{"type":"git","url":"git://github.com/hij1nx/codesurgeon.git"},"keywords":["cli","deploy","browser","minify","uglify","ast","build","unit","test","make","jake","tool"],"dependencies":{"uglify-js":"1.0.x","pkginfo":"*","flatiron":"*","traverse":"0.5.x","findit":"*","jslint-core":"*","eyes":"*","colors":"*","jshint":"0.5.x"},"devDependencies":{"colors":"0.5.x","nodeunit":"0.6.x"},"main":"./lib/codesurgeon","scripts":{"test":"nodeunit test/*-test.js"},"engines":{"node":">= 0.4.0"},"_npmUser":{"name":"hij1nx","email":"hij1nx@me.com"},"_id":"codesurgeon@0.3.2","optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.0-3","_nodeVersion":"v0.6.9","_defaultsLoaded":true,"dist":{"shasum":"171d51eaaa0205f6cb413d06ca4cbb38da430f75","tarball":"https://registry.npmjs.org/codesurgeon/-/codesurgeon-0.3.2.tgz","integrity":"sha512-zrUdvvfXmRwWQAxi8PeWBTKRsxF7uVLfT0tVnc0jPQ3wAA9TG8lliaJ3WCi/v2AQqHxq5+n+c+3Doy2j1gHIFQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFRvzHCBiZEokcTbt2aZjlgW3SR0Js6xO4tdWkaf9D2fAiBh0s+vxaJcyz/hw+OjuhECkc7o8S480lzx+3lAeo0bbw=="}]},"readme":"<br/>\n<img src=\"http://github.com/hij1nx/codesurgeon/raw/master/logo.png\">\n\n# Synopsis\nA build automation tool that allows you to aggregate, manipulate, refine and finalize a code base.\n\n# Motivation\nA build automation tool specifically made for Node.js.\n\n# How it works\nCodesurgon reads files and/or piped input into a buffer. The buffer is used as the source used to create output.\n\n# Features\n - Precision extraction of functions or variables from the input buffer\n  - Rename functions or variables as they are extracted\n  - Control the depth at which variables and function are searched for\n  - Extract any arbitrary value\n - Read multiple files and piped data to the input buffer\n - Concatenate files and piped data\n - Automatically wrap the output in a closure that can detect the javascript environment\n - Hint and or Lint the output\n - Reads your `package.json` to create versioned output filenames and up to date build comments\n - Chainable and asynchronous APIs\n\n# Installation\n\n```bash\n$npm install codesurgeon\n```\n\n# Status\n\n<img src=\"https://secure.travis-ci.org/hij1nx/codesurgeon.png\" alt=\"build status\">\n\n# Usage\nWrite a javascript file and run it.\n\n```bash\n$node mybuildscript.js\n```\n\nCodesurgeon will appreciate piped input!\n\n```bash\n$cat myfile1.js myfile2.js | node mybuildfile.js\n```\n\n## Synchronous example\nAll writes are done synchronously by default (can be done asynchronously), so you can chain them. Here are a few examples. Here is a Build script examples using the above source file\n\n```js\nvar Codesurgeon = require('codesurgeon').Codesurgeon;\nvar surgeon = new Codesurgeon;    // make an instance\n\nsurgeon\n  .configure({                    // lets add some configuration options!\n    quiet: true,                  // don't output the status of each task\n    package: '../package.json'    // read my package.json and use it for version numbers etc.\n  })\n  .read('/*.js')                  // add one or more files to add to the buffer\n  .extract(                       // specify the names in the order we want them to be compiled\n    'B',\n    'a'\n  )\n  .write(__dirname + '/dest.js'); // write the buffer to a file\n```\n\n## Asynchronous example\nRead and write methods can be used asynchronously by adding a callback!\n\n```js\n  surgeon\n    .configure({\n      quiet: true,\n      package: '../package.json'\n    })\n    .read(\n      '/*.js',\n      function() { // callback to fire after reading...\n\n        //\n        // calling `extract` without parameters would extract everything from the buffer.\n        //\n        this.extract(\n          'B', \n          'a'\n        );\n\n        this.write(__dirname + '/dest.js');\n\n      }\n    );\n```\n\n### Source file\n\n```js\nfunction A() { return 'A'; }\nfunction B() { return 'B'; }\nvar a = 100 + 100;\nvar b = 100 + 100;\nfunction C() { return 'C'; }\n```\n\n### Destination File \nUses the specified `package.json` to add a header and change the filename to include the version number.\n\n```js\n//\n// Generated on Thu Sep 29 2012 12:29:42 GMT-0400 (EDT) by Codesurgeon.\n// Version 0.1.6\n//\n\nfunction B() { return 'B'; }\nvar a = 100 + 100;\n```\n\n## Extract-Code-As\nIt is easy to change the name of an item that is extracted!\n\n```js\nsurgeon\n  .read(\n    '/dummy1.js', \n    '/dummy2.js'\n  )\n  .extract(\n    'A',\n    ['C', 'D'] // rename the item (works with dot notation too)\n  );\n```\n\n### Destination File\n\n```js\n//\n// Generated on Thu Sep 29 2011 12:29:42 GMT-0400 (EDT) by Codesurgeon.\n// Version 0.1.6\n//\nfunction A() { return 'A'; }\nfunction D() { return 'C'; } // this has been renamed\n```\n\n## Automatic Wrapping\nWhen compiling a script that will be used in multiple environments, you often want to wrap the code in a closure that will detect the correct environment and pass it in.\n\n### Source file\n\n```js\nfunction A() { ... }\n```\n\n### Destination file\nContains a closure that is passed the object relevant to the environment. See the API reference below to change the arguments or detection expression.\n\n```js\n(function(exports) {\n  function A() { ... }\n}(typeof process !== \"undefined\" && process.title ? module : window));\n\n```\n\n# API\n\n## Constructor\nThe constructor function provides an instance of the Codesurgen.\n\n### Codesurgeon()\n```\n  function Codesurgeon(conf)\n  \n  @param conf {Object} a json object literal that can contain configuration options.\n    @member encoding {String} the encoding that will be used to product the result.\n    @member quiet {String} indicate how much logging you want Codesurgen to produce.\n```\n\n## Instance Methods\n\n### configure()\nAllows you to pass configuration settings to the instance, helpful as you chain together methods.\n\n```\n  function configure(conf)\n  \n  @param conf {Object} a json object literal that can contain configuration options.\n```\n\n### package()\nCapture package details of a `package.json` file. Used in concert with the `write` method. The write method will attempt to read the file and \n\n```\n  function package(path)\n  \n  @param path {String} a path to a valid `package.json` file.\n```\n\n### read()\nRead one or more files from disk. Accepts wild cards in the filename, eg. `*-foo.js`.\n\n```\n  function read(file [, file, ...])\n  \n  @param file {String} a string that represent the locations of a file.\n```\n\n### clear()\nProvides the means to clear the input and or output buffers before the next read and write.\n\n```\n  function clear(option)\n  \n  @param option {String} A string that identifies the buffer to be cleared.\n```\n\n### wrap()\nWraps the code in a closure.\n\n```\n  function wrap(conf)\n  \n  @param conf {Object} a json object literal that can contain configuration options.\n  \n  @param outer {String} code that will be appended outside of the closure.\n  \n  @param before {String} a string of code to prepend to the body of the closure.\n  \n  @param after {String} a string of code to append to the body of the closure.\n  \n  @param params {String} the parameters that you want to pass to the closure\n  \n  @param signature {String} the method signature (parameters that go inside the closure's \n  parenthesis e.g. `function(foo, bar, bazz)` where \"foo, bar, bazz\" is the signature).\n```\n\n### extract(...names) // WITHOUT PARAMETERS WILL EXTRACT EVERYTHING\nSpecifies the names of the items that you would like to extract from the input buffer. You can specify a simple variable or function name such as `myMethod` or you can be specific about the item you are looking for, e.g. `MyConstructor.prototype.foo`. This is helpful in the case where you have another method named `foo` that might occur beforehand, e.g. `OtherConstructor.prototype.foo`.\n\n```\n  function extract(name [, name, ...])\n  \n  @param name {String} a series of strings that represent the items that can be found in the code that has been read by the `read` method.\n```\n\n### exclude(...name) // WITHOUT PARAMETERS WILL EXCLUDE EVERYTHING\nSpecifies the names of the items that you would like to exclude from whatever was extracted.\n\n```\n  function exclude(name [, name, ...])\n  \n  @param name {String} a series of strings that represent the items that can be found in the code that has been extracted by the `extract` method.\n```\n\n### write()\nWrite the output to a file.\n\n```\n  function write(file)\n  \n  @param file {String} a file name that will be created or overwritten.\n```\n\n### append()\nWrite the output to a file.\n\n```\n  function append(file)\n  \n  @file {String} a file name that will be appended to.\n```\n\n### uglify()\nCompacts and/or obfuscates the code.\n\n```\n  function uglify(conf)\n  \n  @param conf {Object} a json object literal that can contain configuration options.\n  \n    @member squeeze {String} Applies various compression techniques. It expects an AST \n    (as returned by parse-js) and returns a new, compatible AST (possibly sharing \n    structure with the original one!).\n    \n    @member mangle {String} This option is careful not to affect the semantics of the code. \n    It will avoid renaming undeclared variables (which could possibly be defined in some \n    other script), and avoid renaming names that are under the influence of a with block, \n    or within the context of an eval call.\n```\n\n### lint()\nProvides strict javascript validation according to Duglass Crockford's JSLint specification (https://github.com/douglascrockford/JSLint)\n\n```\n  function lint(success [, fail, options])\n  \n  @param success {Function} a callback that will be executed if the code passed the requirements \n  of the lint parser.\n\n  @param fail {Function} optional, a callback that will be executed if the code failed the \n  requirements of the lint parser.\n\n  @param options {Object} optional, an object literal containing the options that are supported \n  by the parser.\n```\n\nMost of the options are booleans: They are all optional and have a default value of false. One of the options, predef, can be an array of names, which will be used to declare global variables, or an object whose keys are used as global names, with a boolean value that determines if they are assignable. If the code is not valid, you will see a print out of the issues that were found. The format of the errors will be printed in the form of an array of objects containing these members:\n\n```js\n{\n    line      : The line (relative to 0) at which the lint was found\n    character : The character (relative to 0) at which the lint was found\n    reason    : The problem\n    evidence  : The text line in which the problem occurred\n    raw       : The raw message before the details were inserted\n    a         : The first detail\n    b         : The second detail\n    c         : The third detail\n    d         : The fourth detail\n}\n```\n\n### hint()\nLess Strict javascript validation according to JSHint, a community-driven tool to detect errors in JavaScript code. (https://github.com/jshint)\n\n```\n  function hint(success [, fail, options])\n  @param success {Function} a callback that will be executed if the code passed the requirements \n  of the lint parser.\n  \n  @param fail {Function} optional, a callback that will be executed if the code failed the \n  requirements of the lint parser.\n  \n  @param options {Object} optional, an object literal containing the options that are supported \n  by the parser.\n```\n\n# License\n(The MIT License)\n\nCopyright (c) 2010 hij1nx <http://www.twitter.com/hij1nx>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","maintainers":[{"name":"hij1nx","email":"hij1nx@me.com"}]},"0.3.4":{"name":"codesurgeon","description":"The Node.js build tool","version":"0.3.4","author":{"name":"Nodejitsu Inc","email":"info@nodejitsu.com"},"contributors":[{"name":"Paolo Fragomeni","email":"hij1nx@nodejitsu.com"}],"repository":{"type":"git","url":"http://github.com/hij1nx/codesurgeon.git"},"keywords":["cli","deploy","browser","minify","uglify","ast","build","unit","test","make","jake","tool"],"dependencies":{"uglify-js":"1.0.x","pkginfo":"*","flatiron":"*","traverse":"0.5.x","findit":"*","jslint-core":"*","eyes":"*","colors":"*","jshint":"0.5.x"},"devDependencies":{"colors":"0.5.x","nodeunit":"0.6.x"},"main":"./lib/codesurgeon","scripts":{"test":"nodeunit test/*-test.js"},"engines":{"node":">= 0.4.0"},"readme":"<br/>\n<img src=\"http://github.com/hij1nx/codesurgeon/raw/master/logo.png\">\n\n# Synopsis\nA build automation tool that allows you to aggregate, manipulate, refine and finalize a code base.\n\n# Motivation\nA build automation tool specifically made for Node.js.\n\n# How it works\nCodesurgon reads files and/or piped input into a buffer. The buffer is used as the source used to create output.\n\n# Features\n - Precision extraction of functions or variables from the input buffer\n  - Rename functions or variables as they are extracted\n  - Control the depth at which variables and function are searched for\n  - Extract any arbitrary value\n - Read multiple files and piped data to the input buffer\n - Concatenate files and piped data\n - Automatically wrap the output in a closure that can detect the javascript environment\n - Hint and or Lint the output\n - Reads your `package.json` to create versioned output filenames and up to date build comments\n - Chainable and asynchronous APIs\n\n# Installation\n\n```bash\n$npm install codesurgeon\n```\n\n# Status\n\n<img src=\"https://secure.travis-ci.org/hij1nx/codesurgeon.png\" alt=\"build status\">\n\n# Usage\nWrite a javascript file and run it.\n\n```bash\n$node mybuildscript.js\n```\n\nCodesurgeon will appreciate piped input!\n\n```bash\n$cat myfile1.js myfile2.js | node mybuildfile.js\n```\n\n## Synchronous example\nAll writes are done synchronously by default (can be done asynchronously), so you can chain them. Here are a few examples. Here is a Build script examples using the above source file\n\n```js\nvar Codesurgeon = require('codesurgeon').Codesurgeon;\nvar surgeon = new Codesurgeon;    // make an instance\n\nsurgeon\n  .configure({                    // lets add some configuration options!\n    quiet: true,                  // don't output the status of each task\n    package: '../package.json'    // read my package.json and use it for version numbers etc.\n  })\n  .read('/*.js')                  // add one or more files to add to the buffer\n  .extract(                       // specify the names in the order we want them to be compiled\n    'B',\n    'a'\n  )\n  .write(__dirname + '/dest.js'); // write the buffer to a file\n```\n\n## Asynchronous example\nRead and write methods can be used asynchronously by adding a callback!\n\n```js\n  surgeon\n    .configure({\n      quiet: true,\n      package: '../package.json'\n    })\n    .read(\n      '/*.js',\n      function() { // callback to fire after reading...\n\n        //\n        // calling `extract` without parameters would extract everything from the buffer.\n        //\n        this.extract(\n          'B', \n          'a'\n        );\n\n        this.write(__dirname + '/dest.js');\n\n      }\n    );\n```\n\n### Source file\n\n```js\nfunction A() { return 'A'; }\nfunction B() { return 'B'; }\nvar a = 100 + 100;\nvar b = 100 + 100;\nfunction C() { return 'C'; }\n```\n\n### Destination File \nUses the specified `package.json` to add a header and change the filename to include the version number.\n\n```js\n//\n// Generated on Thu Sep 29 2012 12:29:42 GMT-0400 (EDT) by Codesurgeon.\n// Version 0.1.6\n//\n\nfunction B() { return 'B'; }\nvar a = 100 + 100;\n```\n\n## Extract-Code-As\nIt is easy to change the name of an item that is extracted!\n\n```js\nsurgeon\n  .read(\n    '/dummy1.js', \n    '/dummy2.js'\n  )\n  .extract(\n    'A',\n    ['C', 'D'] // rename the item (works with dot notation too)\n  );\n```\n\n### Destination File\n\n```js\n//\n// Generated on Thu Sep 29 2011 12:29:42 GMT-0400 (EDT) by Codesurgeon.\n// Version 0.1.6\n//\nfunction A() { return 'A'; }\nfunction D() { return 'C'; } // this has been renamed\n```\n\n## Automatic Wrapping\nWhen compiling a script that will be used in multiple environments, you often want to wrap the code in a closure that will detect the correct environment and pass it in.\n\n### Source file\n\n```js\nfunction A() { ... }\n```\n\n### Destination file\nContains a closure that is passed the object relevant to the environment. See the API reference below to change the arguments or detection expression.\n\n```js\n(function(exports) {\n  function A() { ... }\n}(typeof process !== \"undefined\" && process.title ? module : window));\n\n```\n\n# API\n\n## Constructor\nThe constructor function provides an instance of the Codesurgen.\n\n### Codesurgeon(conf)\n```\n  function Codesurgeon(conf)\n  \n  @param conf {Object} a json object literal that can contain configuration options.\n    @member encoding {String} the encoding that will be used to product the result.\n    @member quiet {String} indicate how much logging you want Codesurgen to produce.\n```\n\n## Instance Methods\n\n### configure(conf)\nAllows you to pass configuration settings to the instance, helpful as you chain together methods.\n\n```\n  function configure(conf)\n  \n  @param conf {Object} a json object literal that can contain configuration options.\n```\n\n### package(path)\nCapture package details of a `package.json` file. Used in concert with the `write` method. The write method will attempt to read the file and \n\n```\n  function package(path)\n  \n  @param path {String} a path to a valid `package.json` file.\n```\n\n### read(...files)\nRead one or more files from disk. Accepts wild cards in the filename, eg. `*-foo.js`.\n\n```\n  function read(file [, file, ...])\n  \n  @param file {String} a string that represent the locations of a file.\n```\n\n### clear(buffer)\nProvides the means to clear the input and or output buffers before the next read and write.\n\n```\n  function clear(buffer)\n  \n  @param buffer {String} The buffer to be cleared, `input`, `output` or `both`.\n```\n\n### wrap(options)\nWraps the code in a closure.\n\n```\n  function wrap(conf)\n  \n  @param conf {Object} a json object literal that can contain configuration options.\n  \n  @param outer {String} code that will be appended outside of the closure.\n  \n  @param before {String} a string of code to prepend to the body of the closure.\n  \n  @param after {String} a string of code to append to the body of the closure.\n  \n  @param params {String} the parameters that you want to pass to the closure\n  \n  @param signature {String} the method signature (parameters that go inside the closure's \n  parenthesis e.g. `function(foo, bar, bazz)` where \"foo, bar, bazz\" is the signature).\n```\n\n### extract(...name) // WITHOUT PARAMETERS WILL EXTRACT EVERYTHING\nSpecifies the names of the items that you would like to extract from the input buffer. You can specify a simple variable or function name such as `myMethod` or you can be specific about the item you are looking for, e.g. `MyConstructor.prototype.foo`. This is helpful in the case where you have another method named `foo` that might occur beforehand, e.g. `OtherConstructor.prototype.foo`.\n\n```\n  function extract(name [, name, ...])\n  \n  @param name {String} a series of strings that represent the items that can be found in the code that has been read by the `read` method.\n```\n\n### exclude(...name) // WITHOUT PARAMETERS WILL EXCLUDE EVERYTHING\nSpecifies the names of the items that you would like to exclude from whatever was extracted.\n\n```\n  function exclude(name [, name, ...])\n  \n  @param name {String} a series of strings that represent the items that can be found in the code that has been extracted by the `extract` method.\n```\n\n### write(file)\nWrite the output to a file.\n\n```\n  function write(file)\n  \n  @param file {String} a file name that will be created or overwritten.\n```\n\n### append(file)\nWrite the output to a file.\n\n```\n  function append(file)\n  \n  @file {String} a file name that will be appended to.\n```\n\n### uglify(conf)\nCompacts and/or obfuscates the code.\n\n```\n  function uglify(conf)\n  \n  @param conf {Object} a json object literal that can contain configuration options.\n  \n    @member squeeze {String} Applies various compression techniques. It expects an AST \n    (as returned by parse-js) and returns a new, compatible AST (possibly sharing \n    structure with the original one!).\n    \n    @member mangle {String} This option is careful not to affect the semantics of the code. \n    It will avoid renaming undeclared variables (which could possibly be defined in some \n    other script), and avoid renaming names that are under the influence of a with block, \n    or within the context of an eval call.\n```\n\n### lint(conf)\nProvides strict javascript validation according to Duglass Crockford's JSLint specification (https://github.com/douglascrockford/JSLint)\n\n```\n  function lint(success [, fail, options])\n  \n  @param success {Function} a callback that will be executed if the code passed the requirements \n  of the lint parser.\n\n  @param fail {Function} optional, a callback that will be executed if the code failed the \n  requirements of the lint parser.\n\n  @param options {Object} optional, an object literal containing the options that are supported \n  by the parser.\n```\n\nMost of the options are booleans: They are all optional and have a default value of false. One of the options, predef, can be an array of names, which will be used to declare global variables, or an object whose keys are used as global names, with a boolean value that determines if they are assignable. If the code is not valid, you will see a print out of the issues that were found. The format of the errors will be printed in the form of an array of objects containing these members:\n\n```js\n{\n    line      : The line (relative to 0) at which the lint was found\n    character : The character (relative to 0) at which the lint was found\n    reason    : The problem\n    evidence  : The text line in which the problem occurred\n    raw       : The raw message before the details were inserted\n    a         : The first detail\n    b         : The second detail\n    c         : The third detail\n    d         : The fourth detail\n}\n```\n\n### hint()\nLess Strict javascript validation according to JSHint, a community-driven tool to detect errors in JavaScript code. (https://github.com/jshint)\n\n```\n  function hint(success [, fail, options])\n  @param success {Function} a callback that will be executed if the code passed the requirements \n  of the lint parser.\n  \n  @param fail {Function} optional, a callback that will be executed if the code failed the \n  requirements of the lint parser.\n  \n  @param options {Object} optional, an object literal containing the options that are supported \n  by the parser.\n```\n\n# License\n(The MIT License)\n\nCopyright (c) 2010 hij1nx <http://www.twitter.com/hij1nx>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"codesurgeon@0.3.4","dist":{"shasum":"e66388912b1e58a30e1732766e7afa09e9a6e4ce","tarball":"https://registry.npmjs.org/codesurgeon/-/codesurgeon-0.3.4.tgz","integrity":"sha512-Rjh0bm0y7ISUHmAvkQA4XswNHPZUK5QCkYxeM2QKanCrPN1OJTI99KXKVxAlAmw47tQoQYTk6iVzANdfqscoxQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAqQvMtkkIgGhSyN1Ml6j2h9lqdsvGHG5R8tGrzxf0/tAiBMuUTPvzHrkEt6oDyOq2aJYWvL5FJ0HibZLbtKcFwf9g=="}]},"maintainers":[{"name":"hij1nx","email":"hij1nx@me.com"}]},"0.3.4-1":{"name":"codesurgeon","description":"The Node.js build tool","version":"0.3.4-1","author":{"name":"Nodejitsu Inc","email":"info@nodejitsu.com"},"contributors":[{"name":"Paolo Fragomeni","email":"hij1nx@nodejitsu.com"}],"repository":{"type":"git","url":"http://github.com/hij1nx/codesurgeon.git"},"keywords":["cli","deploy","browser","minify","uglify","ast","build","unit","test","make","jake","tool"],"dependencies":{"colors":"0.6.x","eyes":"0.1.x","findit":"0.1.x","jshint":"0.5.x","jslint-core":"*","traverse":"0.5.x","uglify-js":"1.0.x"},"devDependencies":{"nodeunit":"0.6.x"},"main":"./lib/codesurgeon","scripts":{"test":"nodeunit test/*-test.js"},"engines":{"node":">= 0.4.0"},"readme":"<br/>\n<img src=\"http://github.com/hij1nx/codesurgeon/raw/master/logo.png\">\n\n# Synopsis\nA build automation tool that allows you to aggregate, manipulate, refine and finalize a code base.\n\n# Motivation\nA build automation tool specifically made for Node.js.\n\n# How it works\nCodesurgon reads files and/or piped input into a buffer. The buffer is used as the source used to create output.\n\n# Features\n - Precision extraction of functions or variables from the input buffer\n  - Rename functions or variables as they are extracted\n  - Control the depth at which variables and function are searched for\n  - Extract any arbitrary value\n - Read multiple files and piped data to the input buffer\n - Concatenate files and piped data\n - Automatically wrap the output in a closure that can detect the javascript environment\n - Hint and or Lint the output\n - Reads your `package.json` to create versioned output filenames and up to date build comments\n - Chainable and asynchronous APIs\n\n# Installation\n\n```bash\n$npm install codesurgeon\n```\n\n# Status\n\n<img src=\"https://secure.travis-ci.org/hij1nx/codesurgeon.png\" alt=\"build status\">\n\n# Usage\nWrite a javascript file and run it.\n\n```bash\n$node mybuildscript.js\n```\n\nCodesurgeon will appreciate piped input!\n\n```bash\n$cat myfile1.js myfile2.js | node mybuildfile.js\n```\n\n## Synchronous example\nAll writes are done synchronously by default (can be done asynchronously), so you can chain them. Here are a few examples. Here is a Build script examples using the above source file\n\n```js\nvar Codesurgeon = require('codesurgeon').Codesurgeon;\nvar surgeon = new Codesurgeon;    // make an instance\n\nsurgeon\n  .configure({                    // lets add some configuration options!\n    quiet: true,                  // don't output the status of each task\n    package: '../package.json'    // read my package.json and use it for version numbers etc.\n  })\n  .read('/*.js')                  // add one or more files to add to the buffer\n  .extract(                       // specify the names in the order we want them to be compiled\n    'B',\n    'a'\n  )\n  .write(__dirname + '/dest.js'); // write the buffer to a file\n```\n\n## Asynchronous example\nRead and write methods can be used asynchronously by adding a callback!\n\n```js\n  surgeon\n    .configure({\n      quiet: true,\n      package: '../package.json'\n    })\n    .read(\n      '/*.js',\n      function() { // callback to fire after reading...\n\n        //\n        // calling `extract` without parameters would extract everything from the buffer.\n        //\n        this.extract(\n          'B', \n          'a'\n        );\n\n        this.write(__dirname + '/dest.js');\n\n      }\n    );\n```\n\n### Source file\n\n```js\nfunction A() { return 'A'; }\nfunction B() { return 'B'; }\nvar a = 100 + 100;\nvar b = 100 + 100;\nfunction C() { return 'C'; }\n```\n\n### Destination File \nUses the specified `package.json` to add a header and change the filename to include the version number.\n\n```js\n//\n// Generated on Thu Sep 29 2012 12:29:42 GMT-0400 (EDT) by Codesurgeon.\n// Version 0.1.6\n//\n\nfunction B() { return 'B'; }\nvar a = 100 + 100;\n```\n\n## Extract-Code-As\nIt is easy to change the name of an item that is extracted!\n\n```js\nsurgeon\n  .read(\n    '/dummy1.js', \n    '/dummy2.js'\n  )\n  .extract(\n    'A',\n    ['C', 'D'] // rename the item (works with dot notation too)\n  );\n```\n\n### Destination File\n\n```js\n//\n// Generated on Thu Sep 29 2011 12:29:42 GMT-0400 (EDT) by Codesurgeon.\n// Version 0.1.6\n//\nfunction A() { return 'A'; }\nfunction D() { return 'C'; } // this has been renamed\n```\n\n## Automatic Wrapping\nWhen compiling a script that will be used in multiple environments, you often want to wrap the code in a closure that will detect the correct environment and pass it in.\n\n### Source file\n\n```js\nfunction A() { ... }\n```\n\n### Destination file\nContains a closure that is passed the object relevant to the environment. See the API reference below to change the arguments or detection expression.\n\n```js\n(function(exports) {\n  function A() { ... }\n}(typeof process !== \"undefined\" && process.title ? module : window));\n\n```\n\n# API\n\n## Constructor\nThe constructor function provides an instance of the Codesurgen.\n\n### Codesurgeon(conf)\n```\n  function Codesurgeon(conf)\n  \n  @param conf {Object} a json object literal that can contain configuration options.\n    @member encoding {String} the encoding that will be used to product the result.\n    @member quiet {String} indicate how much logging you want Codesurgen to produce.\n    @member noVersion {Boolean} true if you don't want Codesurgeon to automatically version your output filename.\n```\n\n## Instance Methods\n\n### configure(conf)\nAllows you to pass configuration settings to the instance, helpful as you chain together methods.\n\n```\n  function configure(conf)\n  \n  @param conf {Object} a json object literal that can contain configuration options.\n```\n\n### package(path)\nCapture package details of a `package.json` file. Used in concert with the `write` method. The write method will attempt to read the file and \n\n```\n  function package(path)\n  \n  @param path {String} a path to a valid `package.json` file.\n```\n\n### read(...files)\nRead one or more files from disk. Accepts wild cards in the filename, eg. `*-foo.js`.\n\n```\n  function read(file [, file, ...])\n  \n  @param file {String} a string that represent the locations of a file.\n```\n\n### clear(buffer)\nProvides the means to clear the input and or output buffers before the next read and write.\n\n```\n  function clear(buffer)\n  \n  @param buffer {String} The buffer to be cleared, `input`, `output` or `both`.\n```\n\n### wrap(options)\nWraps the code in a closure.\n\n```\n  function wrap(conf)\n  \n  @param conf {Object} a json object literal that can contain configuration options.\n  \n  @param outer {String} code that will be appended outside of the closure.\n  \n  @param before {String} a string of code to prepend to the body of the closure.\n  \n  @param after {String} a string of code to append to the body of the closure.\n  \n  @param params {String} the parameters that you want to pass to the closure\n  \n  @param signature {String} the method signature (parameters that go inside the closure's \n  parenthesis e.g. `function(foo, bar, bazz)` where \"foo, bar, bazz\" is the signature).\n```\n\n### extract(...name) // WITHOUT PARAMETERS WILL EXTRACT EVERYTHING\nSpecifies the names of the items that you would like to extract from the input buffer. You can specify a simple variable or function name such as `myMethod` or you can be specific about the item you are looking for, e.g. `MyConstructor.prototype.foo`. This is helpful in the case where you have another method named `foo` that might occur beforehand, e.g. `OtherConstructor.prototype.foo`.\n\n```\n  function extract(name [, name, ...])\n  \n  @param name {String} a series of strings that represent the items that can be found in the code that has been read by the `read` method.\n```\n\n### exclude(...name) // WITHOUT PARAMETERS WILL EXCLUDE EVERYTHING\nSpecifies the names of the items that you would like to exclude from whatever was extracted.\n\n```\n  function exclude(name [, name, ...])\n  \n  @param name {String} a series of strings that represent the items that can be found in the code that has been extracted by the `extract` method.\n```\n\n### write(file)\nWrite the output to a file.\n\n```\n  function write(file)\n  \n  @param file {String} a file name that will be created or overwritten.\n```\n\n### append(file)\nWrite the output to a file.\n\n```\n  function append(file)\n  \n  @file {String} a file name that will be appended to.\n```\n\n### uglify(conf)\nCompacts and/or obfuscates the code.\n\n```\n  function uglify(conf)\n  \n  @param conf {Object} a json object literal that can contain configuration options.\n  \n    @member squeeze {String} Applies various compression techniques. It expects an AST \n    (as returned by parse-js) and returns a new, compatible AST (possibly sharing \n    structure with the original one!).\n    \n    @member mangle {String} This option is careful not to affect the semantics of the code. \n    It will avoid renaming undeclared variables (which could possibly be defined in some \n    other script), and avoid renaming names that are under the influence of a with block, \n    or within the context of an eval call.\n```\n\n### lint(conf)\nProvides strict javascript validation according to Duglass Crockford's JSLint specification (https://github.com/douglascrockford/JSLint)\n\n```\n  function lint(success [, fail, options])\n  \n  @param success {Function} a callback that will be executed if the code passed the requirements \n  of the lint parser.\n\n  @param fail {Function} optional, a callback that will be executed if the code failed the \n  requirements of the lint parser.\n\n  @param options {Object} optional, an object literal containing the options that are supported \n  by the parser.\n```\n\nMost of the options are booleans: They are all optional and have a default value of false. One of the options, predef, can be an array of names, which will be used to declare global variables, or an object whose keys are used as global names, with a boolean value that determines if they are assignable. If the code is not valid, you will see a print out of the issues that were found. The format of the errors will be printed in the form of an array of objects containing these members:\n\n```js\n{\n    line      : The line (relative to 0) at which the lint was found\n    character : The character (relative to 0) at which the lint was found\n    reason    : The problem\n    evidence  : The text line in which the problem occurred\n    raw       : The raw message before the details were inserted\n    a         : The first detail\n    b         : The second detail\n    c         : The third detail\n    d         : The fourth detail\n}\n```\n\n### hint()\nLess Strict javascript validation according to JSHint, a community-driven tool to detect errors in JavaScript code. (https://github.com/jshint)\n\n```\n  function hint(success [, fail, options])\n  @param success {Function} a callback that will be executed if the code passed the requirements \n  of the lint parser.\n  \n  @param fail {Function} optional, a callback that will be executed if the code failed the \n  requirements of the lint parser.\n  \n  @param options {Object} optional, an object literal containing the options that are supported \n  by the parser.\n```\n\n# License\n(The MIT License)\n\nCopyright (c) 2010 hij1nx <http://www.twitter.com/hij1nx>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","readmeFilename":"README.md","_id":"codesurgeon@0.3.4-1","dist":{"shasum":"5eda5ca812fa41cbcfa7405f72ee176720b6c368","tarball":"https://registry.npmjs.org/codesurgeon/-/codesurgeon-0.3.4-1.tgz","integrity":"sha512-D0+LsKtZUIYZ8KVnqGKP3I4zqqSEfatasbs0GeGqLsXNUe4Lm3XQUQz0bWaWYW/TrbKigYO7PtefXh/ugSCotg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGDsbCA642b+fs4enTdRNtObg4zuM0lxNwf2GTw1cS61AiBVQ9vu6ex8hkWgwMSlRdqTyuVMVTY9ln2kBMq0UoQegg=="}]},"_npmVersion":"1.1.64","_npmUser":{"name":"hij1nx","email":"hij1nx@me.com"},"maintainers":[{"name":"hij1nx","email":"hij1nx@me.com"}]}},"maintainers":[{"name":"hij1nx","email":"hij1nx@me.com"}],"time":{"modified":"2022-06-13T06:26:54.238Z","created":"2011-09-29T14:57:38.948Z","0.0.1":"2011-09-29T14:57:39.313Z","0.0.2":"2011-09-29T17:09:38.268Z","0.1.0":"2011-10-02T02:02:24.468Z","0.1.1":"2011-10-02T02:13:31.453Z","0.1.2":"2011-10-02T02:23:45.280Z","0.1.4":"2011-10-02T03:12:01.683Z","0.1.5":"2011-10-02T03:36:11.438Z","0.1.6":"2011-10-02T12:28:23.579Z","0.1.7":"2011-10-02T12:53:04.522Z","0.1.8":"2011-10-08T12:20:58.018Z","0.2.0":"2011-10-26T19:45:50.040Z","0.2.1":"2011-10-26T21:33:40.073Z","0.2.2":"2012-01-31T11:05:25.002Z","0.3.0":"2012-02-02T19:12:37.507Z","0.3.1":"2012-02-02T20:29:02.568Z","0.3.2":"2012-02-08T21:24:37.602Z","0.3.4":"2012-08-24T08:05:26.732Z","0.3.4-1":"2012-12-23T21:25:40.763Z"},"author":{"name":"Nodejitsu Inc","email":"info@nodejitsu.com"},"repository":{"type":"git","url":"http://github.com/hij1nx/codesurgeon.git"}}