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:
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 test
to 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-version
to bump the version - Make sure
estree-util-value-to-estree
's version matches (npm test
will check this for you) - Run
git push --follow-tags
to push with tags - Wait for GitHub Actions to publish to the NPM registry.