# filepack

> Bundle files into a single output file, unaltered and in a specified order

Latest version **0.0.2** (published 2019-04-22) · MIT license · 0 weekly downloads

## Install

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

Provides the command `filepack`.

## 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.0.2 |
| Published | 2019-04-22 |
| First published | 2019-04-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Danie Leeuwner |
| Maintainers | dleeuwner |
| Keywords | filepack, pack, files |

## Links

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

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 0.0.2 (latest) — 2019-04-22
- 0.0.1 — 2019-04-22

## README

# filepack

Command-line application that bundles multiple files into a single output file. Input files are added to the output file, unaltered and in the specified order.

### Installation

```shell
$ npm install -g filepack
```

### Configuration

Configuration is specified by a file named `filepack.config.js` in the current working directory.

Sample of configuration file:

```json
{
  "entry": {
    "output.js": [
      "src/file1.js",
      "src/file2.js",
      "src/file3.js",
      "src/file4.js",
      "src/file5.js"
    ],
    "output_reversed.js": [
      "src/file5.js",
      "src/file4.js",
      "src/file3.js",
      "src/file2.js",
      "src/file1.js"
    ]
  },
  "output": {
    "path": "dist"
  }
}
```

The above configuration lets filepack output two files in the `dist` directory named `output.js` and `output_reversed.js`.

### Usage

Once the configuration file has been created, filepack can be executed with the following command:

```shell
$ filepack
```

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