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

esm

Package Overview
Dependencies
Maintainers
2
Versions
140
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

esm - npm Package Compare versions

Comparing version 3.0.16 to 3.0.17

2

package.json
{
"name": "esm",
"version": "3.0.16",
"version": "3.0.17",
"description": "Tomorrow's ESM today!",

@@ -5,0 +5,0 @@ "keywords": "commonjs, ecmascript, export, import, modules, node, require",

@@ -23,2 +23,4 @@ # esm

Use `esm` to load the main ES module and export it as CommonJS.
**index.js**

@@ -28,5 +30,10 @@ ```js

require = require("esm")(module/*, options*/)
module.exports = require("./main.js").default
module.exports = require("./main.js")
```
:bulb: This is automagically done by [`create-esm`](https://github.com/standard-things/create-esm).
**main.js**
```js
// ESM syntax is supported.
export {}
```
:bulb: These files are automagically created with [`create-esm`](https://github.com/standard-things/create-esm).

@@ -33,0 +40,0 @@ 2. Enable `esm` for local runs:

Sorry, the diff of this file is too big to display

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