{"_id":"use-strict","_rev":"269784","name":"use-strict","description":"Makes all modules in Node get loaded in strict mode.","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"isaacs","email":""}],"time":{"modified":"2021-06-03T17:18:25.000Z","created":"2013-04-29T17:57:00.189Z","1.0.1":"2015-05-20T07:29:35.870Z","1.0.0":"2013-04-29T17:57:00.189Z"},"users":{"toomeowns":true,"jalcine":true,"kobleistvan":true,"rlgomes":true,"krickray":true,"i.vispyanskiy":true,"legiao":true,"leor":true,"mdecker":true},"author":{"name":"Isaac Z. Schlueter","email":"i@izs.me","url":"http://blog.izs.me/"},"repository":{"type":"git","url":"git://github.com/isaacs/use-strict.git"},"versions":{"1.0.1":{"name":"use-strict","version":"1.0.1","description":"Makes all modules in Node get loaded in strict mode.","main":"index.js","scripts":{"test":"node test"},"repository":{"type":"git","url":"git://github.com/isaacs/use-strict.git"},"keywords":["use strict","strict mode"],"author":{"name":"Isaac Z. Schlueter","email":"i@izs.me","url":"http://blog.izs.me/"},"license":"ISC","gitHead":"a7cdf43563a5ac514c96b6f781d9018e0b7a68e8","bugs":{"url":"https://github.com/isaacs/use-strict/issues"},"homepage":"https://github.com/isaacs/use-strict#readme","_id":"use-strict@1.0.1","_shasum":"0bb80d94f49a4a05192b84a8c7d34e95f1a7e3a0","_from":".","_npmVersion":"2.10.0","_nodeVersion":"2.0.1","_npmUser":{"name":"isaacs","email":"isaacs@npmjs.com"},"dist":{"shasum":"0bb80d94f49a4a05192b84a8c7d34e95f1a7e3a0","size":2822,"noattachment":false,"key":"/use-strict/-/use-strict-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/use-strict/download/use-strict-1.0.1.tgz"},"maintainers":[{"name":"isaacs","email":""}],"directories":{},"publish_time":1432106975870,"_cnpm_publish_time":1432106975870,"_hasShrinkwrap":false},"1.0.0":{"name":"use-strict","version":"1.0.0","description":"Makes all modules in Node get loaded in strict mode.","main":"index.js","scripts":{"test":"node test"},"repository":{"type":"git","url":"git://github.com/isaacs/use-strict"},"keywords":["use strict","strict mode"],"author":{"name":"Isaac Z. Schlueter","email":"i@izs.me","url":"http://blog.izs.me/"},"license":"BSD","readmeFilename":"README.md","gitHead":"a7cdf43563a5ac514c96b6f781d9018e0b7a68e8","bugs":{"url":"https://github.com/isaacs/use-strict/issues"},"_id":"use-strict@1.0.0","dist":{"shasum":"bec00d6cfc35f15e0efb80bdf12c911f6635fe25","size":2306,"noattachment":false,"key":"/use-strict/-/use-strict-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/use-strict/download/use-strict-1.0.0.tgz"},"_from":".","_npmVersion":"1.2.19","_npmUser":{"name":"isaacs","email":"i@izs.me"},"maintainers":[{"name":"isaacs","email":""}],"directories":{},"publish_time":1367258220189,"_cnpm_publish_time":1367258220189,"_hasShrinkwrap":false}},"readme":"# use-strict\n\nMakes all modules in Node get loaded in strict mode.\n\n## Usage\n\n```javascript\nrequire('use-strict')\n// That's it, now everything is strict forever.\n// in other words: FTFY, YOU'RE WELCOME.\n```\n\n## Downside\n\nStrict mode in JavaScript is virtually always a great thing.  It\nprevents accidental global leakage, turns silent mistakes into errors,\nand removes `with` and `arguments.callee` and their sordid\ncomplexities.  It's mostly a Good Thing.\n\nUnfortunately, it also removes octal literals, which is kind of a\nbummer.  You can pass octal strings to Node's functions that deal with\nfile modes, and they'll do the right thing, so it's not completely\nhorrible.\n\nThe implementation works by patching Node's internal `module.wrapper`\narray, and then freezing it, so that further modifications are not\npossible.\n\nThis means that error printouts that occur on the first line of a node\nmodule will be off by a few characters, since Node does a bit of math\nto account for its wrapper script, which will now be off by 13\ncharacters.  This is probably not a big problem, and not really worth\nworking around.\n\nAlso, this means that the *current* module will not be affected.  You\nshould still `\"use strict\"` in the module that does\n`require('use-strict')`.  This module applies strictness to all\n*future* modules loaded by your program.\n\n**Note** You can also run `node --use_strict` and get the same effect\nwithout any of the caveats.\n","_attachments":{},"homepage":"https://github.com/isaacs/use-strict#readme","bugs":{"url":"https://github.com/isaacs/use-strict/issues"},"license":"ISC"}