# qbundler

> Bundle apps for single-file distribution

Latest version **1.0.0** (published 2018-09-23) · MIT license · 0 weekly downloads

## Install

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

Provides the command `qbundler`.

## 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 | 1.0.0 |
| Published | 2018-09-23 |
| First published | 2018-09-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 4.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Bryan English |
| Maintainers | bengl |
| Keywords | bundle, qdd, install, single-file |

## Links

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

## Dependencies (4)

- [qdd](https://npm.io/package/qdd.md) ^1.4.1
- [webpack](https://npm.io/package/webpack.md) ^4.19.1
- [memory-fs](https://npm.io/package/memory-fs.md) ^0.4.1
- [webpack-node-externals](https://npm.io/package/webpack-node-externals.md) ^1.7.2

## 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

- 1.0.0 (latest) — 2018-09-23

## README

# qbundler

Given a node app (in its fully installed state) with a `package-lock.json`,
**`qbundler`** will create a bundled file containing all the app's JavaScript
files. When the file is run, it will be run with [`qdd`](https://npm.im/qdd)'s
`qdd-node` automatically, with an in-line package-lock, so dependencies will be
installed to and loaded from the `qdd` cache.

[`webpack`](https://npm.im/webpack) is used to create the bundle. At the moment,
only default options are supported (e.g. no support for non-JS files in your
app's directory).

> Note: This is pretty experimental and might break with many apps. It's really
> just at the proof-of-concept stage right now.

Install it globally and pass it a relative path to your entrypoint file. The
`package-lock.json` will be read from the current working directory.

### Example

```
$ npm i -g qdd # qdd must be installed globally for the loader to work
$ npm i # make sure everything is in place for the bundler
$ npx qbundler ./index.js
bundle written to $PWD/index.qbundled.js
$ cp index.qbundled.js /tmp/ # putting it in a completely different place
$ cd /tmp
$ node index.qbundled.js
# app works!
```

## Contributing

See CONTRIBUTING.md.

This project uses the Developer's Certificate of Origin. See DCO.txt.

## Code of Conduct

See CODE_OF_CONDUCT.md.

## License

MIT License. See LICENSE.txt.

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