{"library":"js-string-escape","type":"library","category":null,"description":"js-string-escape is a utility package designed to safely escape arbitrary JavaScript strings for inclusion as string literals within generated JavaScript code. Currently at version 1.0.1, the package appears to be stable but has not seen updates in approximately nine years (as of April 2026), indicating an abandoned or long-term unmaintained status. It adheres to ECMAScript 5.1 specifications for string escaping and has been tested across all Unicode code points, ensuring robust handling of diverse character sets. A key differentiation point is its explicit focus on JavaScript string literal safety, in contrast to JSON escaping rules; specifically, it will escape `\\'` which is invalid in JSON, and does not restrict control characters as JSON does. This makes it suitable for code generation scenarios where the output needs to be valid JavaScript, but unsuitable for generating JSON.","language":"javascript","status":"abandoned","version":"1.0.1","tags":["javascript","string","escape","backslash","ecmascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install js-string-escape","imports":["const jsStringEscape = require('js-string-escape');"]},{"cmd":"yarn add js-string-escape","imports":[]},{"cmd":"pnpm add js-string-escape","imports":[]}],"homepage":null,"github":"https://github.com/joliss/js-string-escape","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/js-string-escape","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/js-string-escape/compatibility"}}