An open API service indexing awesome lists of open source software.

https://github.com/voxpelli/badges-cjs-esm

A selection of shield.io badges to indicate ones type of module
https://github.com/voxpelli/badges-cjs-esm

badges cjs esm

Last synced: 4 months ago
JSON representation

A selection of shield.io badges to indicate ones type of module

Awesome Lists containing this project

README

          

## CJS/ESM badges

[![Follow @voxpelli@mastodon.social](https://img.shields.io/mastodon/follow/109247025527949675?domain=https%3A%2F%2Fmastodon.social&style=social)](https://mastodon.social/@voxpelli)

Pick the right one and add to your repo to, to help people see which type of module the project is.

### ECMAScript module ("ESM")

[![Module type: ESM](https://img.shields.io/badge/module%20type-esm-brightgreen)](https://github.com/voxpelli/badges-cjs-esm)

See more info here: https://nodejs.org/api/esm.html

```md
[![Module type: ESM](https://img.shields.io/badge/module%20type-esm-brightgreen)](https://github.com/voxpelli/badges-cjs-esm)
```

### CommonJS module ("CJS")

See more info here: https://nodejs.org/api/modules.html#modules-commonjs-modules

[![Module type: CJS](https://img.shields.io/badge/module%20type-cjs-brightgreen)](https://github.com/voxpelli/badges-cjs-esm)

```md
[![Module type: CJS](https://img.shields.io/badge/module%20type-cjs-brightgreen)](https://github.com/voxpelli/badges-cjs-esm)
```

### Dual published module

See more info here: https://nodejs.org/api/packages.html#dual-commonjses-module-packages

[![Module type: CJS+ESM](https://img.shields.io/badge/module%20type-cjs%2Besm-brightgreen)](https://github.com/voxpelli/badges-cjs-esm)

```md
[![Module type: CJS+ESM](https://img.shields.io/badge/module%20type-cjs%2Besm-brightgreen)](https://github.com/voxpelli/badges-cjs-esm)
```

## Contributions

Are very welcome! I simply made this one to document how I add badges, in the hopes it could be of help to others as well.

## Similar work

* https://esmodules.dev/