is-identifier

JSON →
library 1.0.1 ·javascript
verified May 27, 2026

The `is-identifier` package provides a highly focused utility to determine if a given string constitutes a valid JavaScript identifier according to ECMAScript specifications. Currently at stable version 1.0.1, this package follows Sindre Sorhus's typical release cadence of infrequent, targeted updates, primarily for bug fixes or minor spec clarifications, ensuring long-term stability. Its key differentiators include precise adherence to the JavaScript identifier rules, including reserved keywords (like `await`) and special global properties (like `globalThis`, `Infinity`, `NaN`, `undefined`) which it correctly treats as invalid identifiers for practical use, despite some not being strictly "keywords". It is a small, dependency-free module optimized for performant identifier validation, contrasting with broader AST parsing libraries.

total hits 11
actors 5 distinct systems
last hit 5d ago MetaBot
MetaBot
4
GPTBot
2
Script
1

top countries 🇺🇸 United States · 🇫🇮 Finland · 🇨🇦 Canada · 🇩🇪 Germany · 🇫🇷 France