# @slimio/bundler

> SlimIO Archive (Addon & Core) Bundler

Latest version **0.4.2** (published 2019-11-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install @slimio/bundler
pnpm add @slimio/bundler
yarn add @slimio/bundler
bun add @slimio/bundler
```

## 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.4.2 |
| Published | 2019-11-25 |
| First published | 2019-05-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=12 |
| Dependencies | 7 |
| Unpacked size | 9.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | SlimIO |
| Maintainers | ahkrin, alexandre.malaj, captainfive, fraxken, mcroquet |
| Keywords | bundler, slimio, packager, back-dce |

## Links

- npm: https://www.npmjs.com/package/@slimio/bundler
- Repository: https://github.com/SlimIO/Bundler
- Homepage: https://github.com/SlimIO/Bundler#readme
- Issues: https://github.com/SlimIO/Bundler/issues
- npm.io page: https://npm.io/package/@slimio/bundler

## Dependencies (7)

- [nexe](https://npm.io/package/nexe.md) ^3.3.1
- [@slimio/is](https://npm.io/package/@slimio/is.md) ^1.5.1
- [get-dir-size](https://npm.io/package/get-dir-size.md) ^1.0.0
- [pretty-bytes](https://npm.io/package/pretty-bytes.md) ^5.2.0
- [@slimio/tarball](https://npm.io/package/@slimio/tarball.md) ^0.1.0
- [@slimio/manifest](https://npm.io/package/@slimio/manifest.md) ^0.7.1
- [@slimio/arg-checker](https://npm.io/package/@slimio/arg-checker.md) ^0.2.1

## Recent versions

- 0.4.2 (latest) — 2019-11-25
- 0.4.1 — 2019-09-23
- 0.4.0 — 2019-08-27
- 0.3.0 — 2019-06-22
- 0.2.1 — 2019-06-20
- 0.2.0 — 2019-06-20
- 0.1.0 — 2019-05-24

## README

# bundler
![version](https://img.shields.io/badge/dynamic/json.svg?url=https://raw.githubusercontent.com/SlimIO/bundler/master/package.json?token=AOgWw3vrgQuu-U4fz1c7yYZyc7XJPNtrks5catjdwA%3D%3D&query=$.version&label=Version)
[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/SlimIO/bundler/commit-activity)
![MIT](https://img.shields.io/github/license/mashape/apistatus.svg)
![dep](https://img.shields.io/david/SlimIO/bundler)
![size](https://img.shields.io/github/languages/code-size/SlimIO/bundler)
[![Known Vulnerabilities](https://snyk.io//test/github/SlimIO/bundler/badge.svg?targetFile=package.json)](https://snyk.io//test/github/SlimIO/bundler?targetFile=package.json)
[![Build Status](https://travis-ci.com/SlimIO/bundler.svg?branch=master)](https://travis-ci.com/SlimIO/bundler)

SlimIO Archive bundler & Core compiler.

## Requirements
- [Node.js](https://nodejs.org/en/) v12 or higher

## Getting Started

This package is available in the Node Package Repository and can be easily installed with [npm](https://docs.npmjs.com/getting-started/what-is-npm) or [yarn](https://yarnpkg.com).

```bash
$ npm i @slimio/bundler
# or
$ yarn add @slimio/bundler
```

## Usage example
TBC

## API

<details><summary>generateAddonArchive(location: string, options?: ArchiveOptions): Promise< string ></summary>
<br />

Create Addon archive.

```js
const { generateAddonArchive } = require("@slimio/bundler");

generateAddonArchive("F:\\Code\\Agent\\addons\\alerting", {
    debug: true
}).catch(console.error);
```

</details>

<details><summary>generateCoreExecutable(location: string, options?: CoreOptions): Promise< string ></summary>
<br />

Compile the core. Options is described by the following interface
```ts
interface CoreOptions {
    debug?: boolean;
    cwd?: string;
}
```

```js
const { generateCoreExecutable } = require("@slimio/bundler");
const { join } = require("path");

generateCoreExecutable("F:\\Code\\AgentTest", {
        debug: true,
        cwd: join(__dirname, "build")
    });
}).then(() => console.log("core compiled")).catch(console.error);
```

</details>

## Dependencies

|Name|Refactoring|Security Risk|Usage|
|---|---|---|---|
|[@slimio/arg-checker](https://github.com/SlimIO/bundler)|Minor|Low|Argument Checker|
|[@slimio/is](https://github.com/SlimIO/is#readme)|Minor|Low|Type checker|
|[@slimio/manifest](https://github.com/SlimIO/Manifester#readme)|Minor|Low|SlimIO manifest|
|[@slimio/tarball](https://github.com/SlimIO/Tarball)|⚠️Major|High|SlimIO Addon & module archive tarball packer/extractor|
|[get-dir-size](https://github.com/fraxken/dir-size#readme)|Minor|Low|Get a directory size|
|[nexe](https://github.com/nexe/nexe#readme)|⚠️Major|High|Create Node.js executable|
|[pretty-bytes](https://github.com/sindresorhus/pretty-bytes#readme)|Minor|Low|Displaying file sizes for humans|

## License
MIT

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