# jsbun

> An extremely lightweight bundler that does nothing but merge your js files using commonjs.

Latest version **2.1.0** (published 2021-06-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install jsbun
pnpm add jsbun
yarn add jsbun
bun add jsbun
```

Provides the command `jsbun`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.0 |
| Published | 2021-06-21 |
| First published | 2021-01-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 25.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | markwylde |

## Links

- npm: https://www.npmjs.com/package/jsbun
- Repository: https://github.com/markwylde/jsbun
- Homepage: https://github.com/markwylde/jsbun#readme
- Issues: https://github.com/markwylde/jsbun/issues
- npm.io page: https://npm.io/package/jsbun

## Dependencies (5)

- [resolve](https://npm.io/package/resolve.md) ^1.20.0
- [chokidar](https://npm.io/package/chokidar.md) ^3.5.2
- [minimist](https://npm.io/package/minimist.md) ^1.2.5
- [code-context](https://npm.io/package/code-context.md) ^0.5.3
- [extract-comments](https://npm.io/package/extract-comments.md) ^1.1.0

## Recent versions

- 2.1.0 (latest) — 2021-06-21
- 2.0.1 — 2021-01-19
- 2.0.0 — 2021-01-17
- 1.0.9 — 2021-01-09
- 1.0.8 — 2021-01-09
- 1.0.7 — 2021-01-06
- 1.0.6 — 2021-01-05
- 1.0.5 — 2021-01-05
- 1.0.4 — 2021-01-05
- 1.0.3 — 2021-01-05
- 1.0.2 — 2021-01-05
- 1.0.1 — 2021-01-05
- 1.0.0 — 2021-01-05

## README

# jsbun
An extremely lightweight bundler that does nothing but merge your js files using commonjs.

## Installation
```bash
npm install --save-dev jsbun
```

(or) globally:
```bash
npm install -g jsbun
```

## Example
The best example is the [npm test scenario](test/scenarios/npm) used in this project.

## Usage
### CLI
```bash
jsbun -o bundled.js js/index.js
```

Optional arguments are:

```text
--watch (-w) [pattern]         rerun when the files change (default pattern is '**/*.js')
--output (-o) fileName         output the bundle to a file instead of to stdout
```

### Code
```javascript
const jsbun = require('jsbun');
const bundled = await jsbun('./js/index.js');
console.log(bundled);
```

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