{"library":"to-valid-identifier","type":"library","category":null,"description":"The `to-valid-identifier` package provides a robust and minimalist utility to convert any given string into a syntactically valid JavaScript identifier. It ensures that the resulting identifier is unique for different inputs, effectively handling special characters, reserved keywords, and numbers. The current stable version is `1.0.0`. Maintained by Sindre Sorhus, this package adheres to best practices, ships with TypeScript types, and aims for high stability with infrequent but impactful major releases. Its core differentiator lies in its guarantee of unique identifiers, making it suitable for code generation, transpilation targets, and dynamic variable/property naming where collisions or invalid syntax are critical concerns.","language":"javascript","status":"active","version":"1.0.0","tags":["javascript","valid","identifier","safe","sanitize","variable","property","ecmascript","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install to-valid-identifier","imports":["import toValidIdentifier from 'to-valid-identifier';","const toValidIdentifier = require('to-valid-identifier');","import toValidIdentifier from 'to-valid-identifier'; // Type inference handled automatically"]},{"cmd":"yarn add to-valid-identifier","imports":[]},{"cmd":"pnpm add to-valid-identifier","imports":[]}],"homepage":null,"github":"https://github.com/sindresorhus/to-valid-identifier","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/to-valid-identifier","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/to-valid-identifier/compatibility"}}