{"library":"to-ast","type":"library","category":null,"description":"The `to-ast` package, currently at version 1.0.0, provides a utility for converting standard JavaScript objects and primitive values into a Mozilla Parser API-compatible Abstract Syntax Tree (AST) representation. This library is specifically designed to facilitate the generation of JavaScript source code from data structures, often used in conjunction with tools like `escodegen`. It supports a wide range of built-in types including primitives (numbers, strings, booleans, undefined, null), functions, arrays, buffers, dates, errors, regular expressions, and object literals. A key differentiator is its ability to handle custom types by respecting a `toAST` method on the object's prototype, allowing for custom AST representations. Given its singular purpose and stable version, its release cadence is likely low, operating more as a specialized, maintenance-mode utility.","language":"javascript","status":"maintenance","version":"1.0.0","tags":["javascript","ast","object","syntax","escodegen","esprima"],"last_verified":"Wed May 27","install":[{"cmd":"npm install to-ast","imports":["const toAST = require('to-ast');"]},{"cmd":"yarn add to-ast","imports":[]},{"cmd":"pnpm add to-ast","imports":[]}],"homepage":null,"github":"https://github.com/devongovett/to-ast","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/to-ast","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-ast/compatibility"}}