Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

esm-env

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

esm-env - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

false.cjs

1

index.d.ts
export const BROWSER: boolean;
export const DEV: boolean;
export const NODE: boolean;
{
"name": "esm-env",
"version": "1.0.0",
"version": "1.1.0",
"repository": {

@@ -15,12 +15,36 @@ "type": "git",

"types": "./index.d.ts",
"browser": {
"development": "./dev-browser.js",
"default": "./prod-browser.js"
"import": "./index.mjs",
"require": "./index.cjs"
},
"./browser": {
"import": {
"browser": "./true.mjs",
"default": "./false.mjs"
},
"default": {
"development": "./dev-ssr.js",
"default": "./prod-ssr.js"
"require": {
"browser": "./true.cjs",
"default": "./false.cjs"
}
},
"./development": {
"import": {
"development": "./true.mjs",
"default": "./false.mjs"
},
"require": {
"development": "./true.cjs",
"default": "./false.cjs"
}
},
"./node": {
"import": {
"node": "./true.mjs",
"default": "./false.mjs"
},
"require": {
"node": "./true.cjs",
"default": "./false.cjs"
}
}
}
}

@@ -10,7 +10,11 @@ # esm-env

```js
import { DEV, BROWSER } from 'esm-env';
import { BROWSER, DEV, NODE } from 'esm-env';
```
## Acknowledgements
Thank you to [dominikg](https://github.com/dominikg) for refining the approach used by this library to suggest a more scalable method for adding additional conditions.
## License
[MIT](LICENSE)
dev-browser.js
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc