1.2.2 • Published 11 months ago

esm-env v1.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

esm-env

Uses export conditions to return environment information in a way that works with major bundlers and runtimes.

Usage

Install with npm install esm-env, then import as needed:

import { BROWSER, DEV, NODE } from 'esm-env';

Specify conditions in your bundler or runtime. For example:

If esm-env is used in both bundled code and an externalized library, you will need to specify conditions both at build-time and run-time.

Acknowledgements

Thank you to dominikg for refining the approach used by this library to suggest a more scalable method for adding additional conditions.

License

MIT

@cokakoala/skeleton@infinitebrahmanuniverse/nolb-esm@everything-registry/sub-chunk-1616@mediakular/svelte-data-gridkjistik-fixed-component-libraryphone-morkuptaleempresentationsvelte-tweakpane-uisvelte-uxsvelte-web-storagesvelte-writable-withsvelte-rune-swrsvelte-runessvelte-searchable-selectsvelte-theme-selectsvelte-headless-componentssvelte-kit-cookie-sessionsvelte-pdfjssvelte4-bcsveltekeyssveltekit-carbon-utilssvelvet-customwindmill-componentswrenchnpm-ui-componentssveltejs-kit-reroutesvauthsveltesvelte-choreographysvelte-google-maps-apisvelte-podcastsveditorjssvelte-babylonsvelte-babylonjssvelte-firebase-user-storesvelte-crypt-textsvelte-table-layoutthyseusvite-blitzvite-blitz-packip-designkb-svelte-google-maps-apilaunchdarkly-svelte-client-sdkhooks-as-storehtml-svelte-parsermaketlottie-player-sveltelutra@wrkwrk/svelte@unified-api/svelte-directory@undp-data/svelte-undp-components@tomoam/site-kit@temporalio/ui@toolsntuts/utils@trigger.dev/svelte@vmmad/test-svelte@user-credits/svelte-ui@unrilwever/kit@vertece/sveltekit@x33025/components@yzn-h/sveltejs-kit@paer/accessibilitytool@peopleplus/auth@peopleplus/components@peteai/presentation-editor@pouchlab/lite@pouchlab/lite-browser@pouchlab/realtor@pouchlab/ui@pouchsdk/realtorfractils@tanglemedia/svelte-starter-core@tanglemedia/svelte-starter-directus-api@tanstack/svelte-query-devtoolsedytoresm-env-robustfeatherplotfasteejsfirstly@puruvj/svelte-repl-next@0xclearview/svelte-tiny-virtual-table@288-toolkit/sprite-animation@288-toolkit/component-loader@288-toolkit/device@288-toolkit/dismissable@288-toolkit/format@288-toolkit/i18n@288-toolkit/page-transition@288-toolkit/pagination@prismicio/react@prismicio/vue@prismicio/svelte@cartamd/plugin-component@chanceseed/shoelace-ui@chasi/ui@chenlucas/list@beermonster/number-flow@beermonster/number-flow-react@beermonster/number-flow-svelte@beermonster/number-flow-vuecarta-md
1.2.2

11 months ago

1.2.0

12 months ago

1.2.1

12 months ago

1.1.1

1 year ago

1.1.0

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.0.0

3 years ago