es-identifiers
v0.2.0
Published
Regular expressions of ECMAScript (Unicode-based) IdentifierName production
Downloads
5
Readme
es-identifiers
Regular expressions of ECMAScript's (Unicode-based) IdentifierName
production (per
latest available Unicode version, currently 10.0.0).
Node usage
const {IdentifierName} = require('es-identifiers');
IdentifierName.test(aPurportedIdentifier);
Browser usage
<script src="node_modules/es-identifiers/dist/es-identifiers-browser.js">
ESIdentifiers.IdentifierName.test(aPurportedIdentifier);