GitShow/sindresorhus/to-valid-identifier
sindresorhus

to-valid-identifier

Convert a string to a valid JavaScript identifier

by sindresorhus
Star on GitHubForknpm

JavaScript

42 stars3 forks3 contributorsQuiet · 7mo agoSince 2024v1.0.0MIT

Meet the team

See all 3 on GitHub →
sindresorhus
sindresorhus7 contributions
brettz9
brettz91 contribution
brc-dd
brc-dd1 contribution

Languages

View on GitHub →
JavaScript100%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
brettz9
fix: escape non-ID_Start characters (e.g., digits) in initial positionMergedPR

Non-ID_Start characters require their own escaping in initial position (e.g., digits cannot begin an identifier).

brettz9 · 8mo ago
brc-dd
Fix function return typeMergedPR
brc-dd · 2y ago
Structured data for AI agents

Repository: sindresorhus/to-valid-identifier. Description: Convert a string to a valid JavaScript identifier Stars: 42, Forks: 3. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Latest release: v1.0.0 (8mo ago). Open PRs: 0, open issues: 0. Last activity: 7mo ago. Community health: 85%. Top contributors: sindresorhus, brettz9, brc-dd.

·@ofershap

Replace github.com with gitshow.dev