Skip to content

svitejs/node-conditions

Repository files navigation

node-conditions

npm version CI

A small utility to read node conditions as boolean flags, useful for conditionally including or excluding code.

Installation

npm install --save-dev node-conditions

Usage

See package readme

Packages

Package Changelog
node-conditions Changelog

Development

  • 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

Credits

  • Ben McCann for the genius idea to export booleans via conditions in esm-env

License

MIT