{"_id":"varify","_rev":"16-611c41f5eff393f2c00c627994f3b325","name":"varify","description":"browserify transform that converts all const assignments to var assignments.","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"varify","version":"0.1.0","description":"browserify transform that converts all const assignments to var assignments.","main":"varify.js","scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"git://github.com/thlorenz/varify.git"},"homepage":"https://github.com/thlorenz/varify","dependencies":{"through":"~2.3.4","redeyed":"~0.4.2"},"devDependencies":{"tap":"~0.4.3","browserify":"~2.14.2"},"keywords":["const","var","es5","refactor","compatible"],"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"http://thlorenz.com"},"license":"MIT","engine":{"node":">=0.6"},"_id":"varify@0.1.0","dist":{"shasum":"1536048d046bd770f0a3d59e5bd9917da5b9239d","tarball":"https://registry.npmjs.org/varify/-/varify-0.1.0.tgz","integrity":"sha512-YGRV0eq7In51MY1oROszgyRRVvPNu0l25gW9f+KWA6q55wrOf83hJqY0FFkgr5e6IbKxC32NoEQteqJlNTuzuQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCCqf3OXjmpzBjXPt5xolnQXkCvt92p7SZuLt/ZbVJaKgIgIwG9gIWAQ94XLxZyy6c7BEOmDD5adn06DUf6vY3OOCA="}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"thlorenz","email":"thlorenz@gmx.de"},"maintainers":[{"name":"thlorenz","email":"thlorenz@gmx.de"}],"directories":{}},"0.1.1":{"name":"varify","version":"0.1.1","description":"browserify transform that converts all const assignments to var assignments.","main":"varify.js","scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"git://github.com/thlorenz/varify.git"},"homepage":"https://github.com/thlorenz/varify","dependencies":{"through":"~2.3.4","redeyed":"~0.4.2"},"devDependencies":{"tap":"~0.4.3","browserify":"~2.14.2"},"keywords":["const","var","es5","refactor","compatible"],"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"http://thlorenz.com"},"license":"MIT","engine":{"node":">=0.6"},"_id":"varify@0.1.1","dist":{"shasum":"98854bf465438a520788cfca136e14f511155b1e","tarball":"https://registry.npmjs.org/varify/-/varify-0.1.1.tgz","integrity":"sha512-akw25TKNrm6CejZMpJo1rGVQvMjWagrd4wClidGL6qSViUFTTQ8kPp2IDMGrZYXGOLN6+nkjETLumAn6hpnDQg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJHyNPI5Y3bTnFHE9iMbheakot9WQWD5Tf+ag+sYuoTQIgQPN1F5ogySP+yea/a/53+uNaR2sD+a08k3E3OoNR7ro="}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"thlorenz","email":"thlorenz@gmx.de"},"maintainers":[{"name":"thlorenz","email":"thlorenz@gmx.de"}]},"0.2.0":{"name":"varify","version":"0.2.0","description":"browserify transform that converts all const assignments to var assignments.","main":"varify.js","scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"git://github.com/thlorenz/varify.git"},"homepage":"https://github.com/thlorenz/varify","dependencies":{"redeyed":"~1.0.1","through":"~2.3.4"},"devDependencies":{"tap":"~0.4.3","browserify":"~2.14.2"},"keywords":["const","var","es5","refactor","compatible"],"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"http://thlorenz.com"},"license":"MIT","engine":{"node":">=0.6"},"gitHead":"bb4bfcb22a4e92636d56c1789ed4ae9bbb1e2385","bugs":{"url":"https://github.com/thlorenz/varify/issues"},"_id":"varify@0.2.0","_shasum":"191da9fe9dc4cd68d0d14498d4e2a910ff4e6516","_from":".","_npmVersion":"2.15.11","_nodeVersion":"6.7.0","_npmUser":{"name":"thlorenz","email":"thlorenz@gmx.de"},"dist":{"shasum":"191da9fe9dc4cd68d0d14498d4e2a910ff4e6516","tarball":"https://registry.npmjs.org/varify/-/varify-0.2.0.tgz","integrity":"sha512-C9xLFeXwNCE336qgoYr/BQv44dt93nIT3lNO5xlPPj8ngs5qWiD/OfAZFKY8nxA8+oZ5JFVZGp+6bkV6Vjedsw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDgUckDOv48HhHSr2FDe9UfVjI9CuXtW/yrLJvp8k7wCAiAxFsY/jpsAOc3DwC6zQ1e/0cd0kJBXY7tKgTJbFVtvLQ=="}]},"maintainers":[{"name":"thlorenz","email":"thlorenz@gmx.de"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/varify-0.2.0.tgz_1489162901664_0.739731373032555"}}},"readme":"# varify [![build status](https://secure.travis-ci.org/thlorenz/varify.png)](http://travis-ci.org/thlorenz/varify)\n\nbrowserify transform that converts all const assignments to var assignments.\n\n    npm install varify\n\n## Why?\n\nSo you can get the benefits of immutable variables with help of lint tools while staying compatible with older browsers\nthat have no `const`.\n\n## Warning\n\nThe real `const` is block scoped, however when replaced with `var` this feature is lost. So only use varify if you can\ndo without block scope and are only looking for some immutability support that gets compiled out for compatibility.\n\nIf you are after block scope, have a look at [def.js](https://github.com/olov/defs) which provides\n[limited](https://github.com/olov/defs#loop-closures-limitation) support for that.\n\n## Example\n\nGiven this JavaScript:\n\n```js\nconst a = 1;\n\nvar keep = { const: 1 };\nkeep.const = 2;\n\nconst foo = function () {\n  console.log('some const s should be left unchanged');\n};\n```\n\nRunning browserify with varify transform:\n\n```js\nrequire('browserify')()\n  .transform(require('varify'))\n  .add(__dirname + '/sample.js')\n  .bundle()\n  .pipe(process.stdout);\n```\n\nOutputs:\n\n```js\nvar a = 1;\n\nvar keep = { const: 1 };\nkeep.const = 2;\n\nvar foo = function () {\n  console.log('some const s should be left unchanged');\n};\n```\n\n## Usage from Commandline\n\n    browserify -t varify sample.js > bundle.js\n","maintainers":[{"name":"thlorenz","email":"thlorenz@gmx.de"}],"time":{"modified":"2022-06-28T09:08:16.382Z","created":"2013-05-22T02:56:06.924Z","0.1.0":"2013-05-22T02:56:27.445Z","0.1.1":"2013-05-22T03:28:28.306Z","0.2.0":"2017-03-10T16:21:43.657Z"},"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"http://thlorenz.com"},"repository":{"type":"git","url":"git://github.com/thlorenz/varify.git"},"homepage":"https://github.com/thlorenz/varify","keywords":["const","var","es5","refactor","compatible"],"bugs":{"url":"https://github.com/thlorenz/varify/issues"},"license":"MIT","readmeFilename":"README.md"}