Socket
Socket
Sign inDemoInstall

@chialab/cjs-to-esm

Package Overview
Dependencies
3
Maintainers
2
Versions
78
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @chialab/cjs-to-esm

A commonjs to esm converter.


Version published
Weekly downloads
6K
increased by134.98%
Maintainers
2
Install size
5.19 MB
Created
Weekly downloads
 

Readme

Source

CommonJS to ESM • A commonjs to esm converter, inspired by WMR.

NPM


Install

npm i @chialab/cjs-to-esm -D
yarn add @chialab/cjs-to-esm -D

Usage

import { transform } from '@chialab/cjs-to-esm';

const { code, map } = transform('require("tslib"); module.exports = function() {}');

License

CommonJS to ESM is released under the MIT license.

Keywords

FAQs

Last updated on 11 Jan 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc