A small utility to read node conditions as boolean flags, useful for conditionally including or excluding code.
npm install --save-dev node-conditions
See package readme
Package | Changelog |
---|---|
node-conditions | Changelog |
- Run
pnpm i
to install dependencies - edit conditions.js to add conditions
- run
pnpm generate
to regenerate package - run
pnpm changeset
to add a changeset - send PR
- Ben McCann for the genius idea to export booleans via conditions in esm-env