{"library":"javascript-stringify","type":"library","category":null,"description":"The `javascript-stringify` library provides a function, `stringify`, that converts JavaScript values into a string representation that can be safely `eval`'d back into JavaScript, in contrast to `JSON.stringify` which outputs JSON. It supports serializing a wider range of JavaScript types, including regular expressions, `Date` objects, `Number` objects, `Error`, `Map`, `Set`, and most notably, functions (including ES methods, async, and generator functions). It also handles circular references by default omitting them or, with an option, restoring them via an IIFE. The current stable version is 2.1.0. Releases appear driven by bug fixes and feature enhancements rather than a strict cadence, with significant changes like TypeScript rewrite and ESM transition occurring in major versions. Its primary differentiator is the ability to produce evaluable JavaScript code, making it useful for scenarios like code generation or transmitting configuration that includes functional logic.","language":"javascript","status":"active","version":"2.1.0","tags":["javascript","stringify","object","eval","string","code","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install javascript-stringify","imports":["import { stringify } from 'javascript-stringify';","import type { StringifyOptions } from 'javascript-stringify';"]},{"cmd":"yarn add javascript-stringify","imports":[]},{"cmd":"pnpm add javascript-stringify","imports":[]}],"homepage":null,"github":"https://github.com/blakeembrey/javascript-stringify","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/javascript-stringify","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/javascript-stringify/compatibility"}}