{"_id":"reserved-words","_rev":"123080","name":"reserved-words","description":"ECMAScript reserved words checker","dist-tags":{"latest":"0.1.2"},"maintainers":[{"name":"qfox","email":""}],"time":{"modified":"2023-03-27T17:05:41.000Z","created":"2015-07-20T10:51:23.955Z","0.1.2":"2017-08-12T13:30:48.769Z","0.1.1":"2015-07-20T10:51:23.955Z"},"users":{},"author":{"name":"Alexej Yaroshevich","email":"zxqfox@gmail.com","url":"http://github.com/zxqfox"},"repository":{"type":"git","url":"git+https://github.com/zxqfox/reserved-words.git"},"versions":{"0.1.2":{"name":"reserved-words","version":"0.1.2","description":"ECMAScript reserved words checker","main":"lib/index.js","scripts":{"test":"jshint && jscs lib test && mocha"},"repository":{"type":"git","url":"git+https://github.com/zxqfox/reserved-words.git"},"keywords":["ES3","ES5","ES6","ReservedWord","Keyword","checker"],"author":{"name":"Alexej Yaroshevich","email":"zxqfox@gmail.com","url":"http://github.com/zxqfox"},"license":"MIT","bugs":{"url":"https://github.com/zxqfox/reserved-words/issues"},"homepage":"https://github.com/zxqfox/reserved-words#readme","devDependencies":{"jscs":"^1.13.1","jscs-jsdoc":"^1.1.0","jshint":"^2.8.0","mocha":"^2.2.5"},"files":["lib","README.md","LICENSE"],"gitHead":"55071b49b55e57b949b0557b4e8f2b711919fe43","_id":"reserved-words@0.1.2","_shasum":"00a0940f98cd501aeaaac316411d9adc52b31ab1","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.5.0","_npmUser":{"name":"qfox","email":"zxqfox@gmail.com"},"dist":{"shasum":"00a0940f98cd501aeaaac316411d9adc52b31ab1","size":4055,"noattachment":false,"key":"/reserved-words/-/reserved-words-0.1.2.tgz","tarball":"http://name.csiicloud.com:7001/reserved-words/download/reserved-words-0.1.2.tgz"},"maintainers":[{"name":"qfox","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/reserved-words-0.1.2.tgz_1502544647834_0.17254906753078103"},"directories":{},"publish_time":1502544648769,"_hasShrinkwrap":false,"_cnpm_publish_time":1502544648769},"0.1.1":{"name":"reserved-words","version":"0.1.1","description":"ECMAScript reserved words checker","main":"lib/index.js","scripts":{"test":"jshint && jscs lib test && mocha"},"repository":{"type":"git","url":"git+https://github.com/zxqfox/reserved-words.git"},"keywords":["ES3","ES5","ES6","ReservedWord","Keyword","checker"],"author":{"name":"Alexej Yaroshevich","email":"zxqfox@gmail.com","url":"http://github.com/zxqfox"},"license":"MIT","bugs":{"url":"https://github.com/zxqfox/reserved-words/issues"},"homepage":"https://github.com/zxqfox/reserved-words#readme","devDependencies":{"jscs":"^1.13.1","jscs-jsdoc":"^1.1.0","jshint":"^2.8.0","mocha":"^2.2.5"},"files":["lib","README.md","LICENSE"],"gitHead":"0f719a971be6cfbe582d3d11a86726470904d5e1","_id":"reserved-words@0.1.1","_shasum":"6f7c15e5e5614c50da961630da46addc87c0cef2","_from":".","_npmVersion":"2.9.0","_nodeVersion":"2.0.1","_npmUser":{"name":"qfox","email":"zxqfox@gmail.com"},"dist":{"shasum":"6f7c15e5e5614c50da961630da46addc87c0cef2","size":3280,"noattachment":false,"key":"/reserved-words/-/reserved-words-0.1.1.tgz","tarball":"http://name.csiicloud.com:7001/reserved-words/download/reserved-words-0.1.1.tgz"},"maintainers":[{"name":"qfox","email":""}],"directories":{},"publish_time":1437389483955,"_cnpm_publish_time":1437389483955,"_hasShrinkwrap":false}},"readme":"# reserved-words\n\n[![Build Status](https://secure.travis-ci.org/zxqfox/reserved-words.svg)](http://travis-ci.org/zxqfox/reserved-words)\n\n## What is it?\n\nTiny package for detecting reserved words.\n\n`Reserved Word` is either a `Keyword`, or a `Future Reserved Word`, or a `Null Literal`, or a `Boolean Literal`.\nSee: [ES5 #7.6.1](http://es5.github.io/#x7.6.1) and\n[ES6 #11.6.2](http://www.ecma-international.org/ecma-262/6.0/#sec-reserved-words).\n\n## Installation\n\n```\nnpm install reserved-words\n```\n\n## API\n\n### check(word, [dialect], [strict])\n\nReturns `true` if provided identifier string is a Reserved Word\nin some ECMAScript dialect (ECMA-262 edition).\n\nIf the `strict` flag is truthy, this function additionally checks whether\n`word` is a Keyword or Future Reserved Word under strict mode.\n\n#### Example\n\n```\nvar reserved = require('reserved-words');\nreserved.check('volatile', 'es3'); // true\nreserved.check('volatile', 'es2015'); // false\nreserved.check('yield', 3); // false\nreserved.check('yield', 6); // true\n```\n\n### dialects\n\n#### es3 (or 3)\n\nRepresents [ECMA-262 3rd edition](http://www.ecma-international.org/publications/files/ECMA-ST-ARCH/ECMA-262,%203rd%20edition,%20December%201999.pdf).\n\nSee section 7.5.1.\n\n#### es5 (or 5)\n\nRepresents [ECMA-262 5th edition (ECMAScript 5.1)](http://es5.github.io/).\n\nReserved Words are formally defined in ECMA262 sections\n[7.6.1.1](http://es5.github.io/#x7.6.1.1) and [7.6.1.2](http://es5.github.io/#x7.6.1.2).\n\n#### es2015 (or es6, 6)\n\nRepresents [ECMA-262 6th edition](ECMAScript 2015).\n\nReserved Words are formally defined in sections\n[11.6.2.1](http://ecma-international.org/ecma-262/6.0/#sec-keywords) and\n[11.6.2.2](http://ecma-international.org/ecma-262/6.0/#sec-future-reserved-words).\n\n### License\n\nLicensed under [The MIT License](https://github.com/zxqfox/reserved-words/blob/master/LICENSE)\n","_attachments":{},"homepage":"https://github.com/zxqfox/reserved-words#readme","bugs":{"url":"https://github.com/zxqfox/reserved-words/issues"},"license":"MIT"}