# @hugov/cjs-to-iife

> small simple bundler

Latest version **0.1.4** (published 2019-09-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install @hugov/cjs-to-iife
pnpm add @hugov/cjs-to-iife
yarn add @hugov/cjs-to-iife
bun add @hugov/cjs-to-iife
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.4 |
| Published | 2019-09-26 |
| First published | 2017-12-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 2.3 KB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Hugo Villeneuve |
| Maintainers | hugov |
| Keywords | rollup, bundle, cjs, commonjs, iife |

## Links

- npm: https://www.npmjs.com/package/@hugov/cjs-to-iife
- Repository: https://github.com/hville/cjs-to-iife
- Homepage: https://github.com/hville/cjs-to-iife#readme
- Issues: https://github.com/hville/cjs-to-iife/issues
- npm.io page: https://npm.io/package/@hugov/cjs-to-iife

## Dependencies (3)

- [rollup](https://npm.io/package/rollup.md) ^1.21.4
- [rollup-plugin-commonjs](https://npm.io/package/rollup-plugin-commonjs.md) ^10.1.0
- [rollup-plugin-node-resolve](https://npm.io/package/rollup-plugin-node-resolve.md) ^5.2.0

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 0.1.4 (latest) — 2019-09-26
- 0.1.3 — 2019-01-12
- 0.1.2 — 2018-11-11
- 0.1.1 — 2017-12-15

## README

# cjs-to-iife

*small simple bundler*

## Examples

```javascript
const code = require('cjs-to-iife')('./commonjsmodule.js')
```

## Notes

* returns the promise of a string
* sets `this.exports.name` or `this.exports.default`. Uses the following rollup options
  * format: 'iife'
  * extend: true
  * exports: 'named'
  * name: 'exports'

## License

[MIT](http://www.opensource.org/licenses/MIT) © [Hugo Villeneuve](https://github.com/hville)

---
_Source: https://npm.io/package/@hugov/cjs-to-iife · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
