{"id":17402318,"url":"https://github.com/qfox/reserved-words","last_synced_at":"2025-04-15T18:24:27.689Z","repository":{"id":35149320,"uuid":"39376491","full_name":"qfox/reserved-words","owner":"qfox","description":":bookmark_tabs: ES reserved words checker","archived":false,"fork":false,"pushed_at":"2020-06-26T12:51:16.000Z","size":10,"stargazers_count":10,"open_issues_count":1,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-09T15:37:36.531Z","etag":null,"topics":["es2015","es2016","es2017","es5","es6","keywords","reserved","words"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/qfox.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-20T10:00:07.000Z","updated_at":"2023-03-18T15:21:57.000Z","dependencies_parsed_at":"2022-09-12T04:11:21.219Z","dependency_job_id":null,"html_url":"https://github.com/qfox/reserved-words","commit_stats":null,"previous_names":["zxqfox/reserved-words"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qfox%2Freserved-words","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qfox%2Freserved-words/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qfox%2Freserved-words/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qfox%2Freserved-words/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qfox","download_url":"https://codeload.github.com/qfox/reserved-words/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249127116,"owners_count":21216926,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["es2015","es2016","es2017","es5","es6","keywords","reserved","words"],"created_at":"2024-10-16T17:26:02.878Z","updated_at":"2025-04-15T18:24:27.671Z","avatar_url":"https://github.com/qfox.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqfox%2Freserved-words","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqfox%2Freserved-words","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqfox%2Freserved-words/lists"}