estree-util-value-to-estree-cjs
v3.3.3
Published
CommonJS packaged version of estree-util-value-to-estree
Readme
estree-util-value-to-estree-cjs
A wrapper of remcohaszing's brilliant estree-util-value-to-estree, packaged to be imported synchronously into CJS projects.
In most scenarios you should NOT use this package. Instead, consider:
- Using ESM, and importing
estree-util-value-to-estreedirectly - Using dynamic imports, and importing
estree-util-value-to-estreedirectly
Usage
Use this where you'd otherwise use estree-util-value-to-estree, for example:
const { valueToEstree } = require('estree-util-value-to-estree-cjs');
module.exports = valueToEstree({
name: "Adam"
})Contributing
Pull requests are welcomed on GitHub! To get started:
- Install Git and Node.js
- Clone the repository
- Install dependencies with
npm install - Run
npm run testto run tests - Build with
npm run build
Releases
Versions follow the versioning of estree-util-value-to-estree.
To release:
- Use
npm version <version> --allow-same-versionto bump the version - Make sure
estree-util-value-to-estree's version matches (npm testwill check this for you) - Run
git push --follow-tagsto push with tags - Wait for GitHub Actions to publish to the NPM registry.
