{"library":"babel-literal-to-ast","type":"library","category":null,"description":"This utility package, `babel-literal-to-ast`, converts standard JavaScript literals and simple objects directly into their Abstract Syntax Tree (AST) representation, formatted according to Babel's specific AST specification. Unlike general-purpose AST parsers that convert source code strings, this library takes a live JavaScript value (like a number, string, boolean, array, or plain object) and returns the corresponding Babel AST node structure. It currently sits at version 2.1.0, with its last update in February 2019, suggesting a stable but no longer actively developed status. Its primary use case is within Babel transformers or other tools that manipulate Babel ASTs, providing a convenient way to inject or create AST nodes from known literal values without having to manually construct the AST objects or parse stringified code. A key differentiator is its direct output to Babel AST format, which has specific deviations from the more generic ESTree specification.","language":"javascript","status":"maintenance","version":"2.1.0","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install babel-literal-to-ast","imports":["import serialize from 'babel-literal-to-ast';","import * as t from '@babel/types';"]},{"cmd":"yarn add babel-literal-to-ast","imports":[]},{"cmd":"pnpm add babel-literal-to-ast","imports":[]}],"homepage":null,"github":"https://github.com/izaakschroeder/babel-literal-to-ast","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-literal-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/babel-literal-to-ast/compatibility"}}