Convert a string to a valid JavaScript identifier
MIT License
Bot releases are visible (Hide)
Published by sindresorhus 6 months ago
🦄
Convert a URL to a valid filename
Global identifiers from different JavaScript environments
Convert a tilde path to an absolute path: ~/dev => /Users/sindresorhus/dev
Rename a function
Convert a camelized/dasherized/underscored string into a humanized one: fooBar-Baz_Faz → Foo bar ...
Check if a string is a valid JavaScript identifier
Slugify a string
ES2015 Number.isInteger() ponyfill
Check if something is a generator function
Regular expression for matching issue references
Regular expression for matching JavaScript identifiers
Check if a string is a valid filename
Convert a string to a valid safe filename
Provides a list of reserved identifiers for JavaScript
Generate a unique random string