{"library":"cssesc","type":"library","category":null,"description":"cssesc is a JavaScript utility library designed for safely escaping arbitrary strings and identifiers for use within CSS. It specializes in producing the shortest possible valid ASCII-only escape sequences, making it efficient for various web development scenarios. Currently at stable version 3.0.0, it offers more granular control than the native `CSS.escape()` method or its polyfills. Key differentiators include the ability to specify if the output is intended for a CSS string literal or a CSS identifier, and control over quote preferences for string wrapping. Its release cadence is typically measured, reflecting its nature as a focused utility library with a stable API. It declares compatibility with Node.js versions 4 and higher, making it widely compatible, though modern usage typically occurs on much newer environments.","language":"javascript","status":"active","version":"3.0.0","tags":["javascript","css","escape","identifier","string","tool"],"last_verified":"Wed May 27","install":[{"cmd":"npm install cssesc","imports":["import cssesc from 'cssesc';","const cssesc = require('cssesc');","import cssesc, { Options } from 'cssesc';"]},{"cmd":"yarn add cssesc","imports":[]},{"cmd":"pnpm add cssesc","imports":[]}],"homepage":"https://mths.be/cssesc","github":"https://github.com/mathiasbynens/cssesc","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/cssesc","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/cssesc/compatibility"}}