Convert JavaScript values to ESTree expressions

JSON →
library 3.5.0 ·javascript
verified May 27, 2026

estree-util-value-to-estree is a utility library for converting diverse JavaScript values into their corresponding ESTree Abstract Syntax Tree (AST) expressions. This package is particularly useful for tools that manipulate or generate JavaScript code, enabling programmatic construction of AST nodes from native JavaScript types. The current stable version is 3.5.0, with a release cadence that includes regular minor and patch updates to support new JavaScript features and fix bugs. Key differentiators include its broad support for various primitive types (e.g., bigint, symbol, undefined, null, boolean, number, string) and object types (e.g., Array, Object, Map, Set, Date, RegExp, Buffer, various TypedArrays, and Temporal types). It also provides a `serialize` option for handling custom or unsupported values, allowing users to define how complex or application-specific data structures should be represented in the AST. It is designed for values that can be constructed without needing a runtime context.

total hits 34
actors 7 distinct systems
last hit 16h ago human
MetaBot
4
GPTBot
2
Script
1
Amazonbot
1
Search engines
1
Humans
1

top countries 🇨🇦 Canada · 🇺🇸 United States · 🇫🇷 France · 🇦🇺 Australia · 🇳🇴 Norway