# icsa

> ICSA is an archive file format based on brotli compression

Latest version **1.4.2** (published 2020-02-04) · MIT license · 0 weekly downloads

## Install

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

Provides the command `icsa`.

## 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.4.2 |
| Published | 2020-02-04 |
| First published | 2020-01-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 21.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Pharuxtan |
| Maintainers | pharuxtan |
| Keywords | compress, archive, brotli, file, icsa |

## Links

- npm: https://www.npmjs.com/package/icsa
- Repository: https://github.com/Pharuxtan/ICSA
- Homepage: https://github.com/Pharuxtan/ICSA#readme
- Issues: https://github.com/Pharuxtan/ICSA/issues
- npm.io page: https://npm.io/package/icsa

## Dependencies (3)

- [path](https://npm.io/package/path.md) ^0.12.7
- [iltorb](https://npm.io/package/iltorb.md) ^2.4.5
- [commander](https://npm.io/package/commander.md) ^4.1.1

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

- 1.4.2 (latest) — 2020-02-04
- 1.4.1 — 2020-02-04
- 1.4.0 — 2020-02-04
- 1.3.1 — 2020-01-31
- 1.3.0 — 2020-01-30
- 1.2.6 — 2020-01-30
- 1.2.5 — 2020-01-30
- 1.2.3 — 2020-01-30
- 1.2.2 — 2020-01-30
- 1.2.1 — 2020-01-30
- 1.2.0 — 2020-01-30
- 1.1.0 — 2020-01-30

## README

# ICSA

[![LICENSE](https://img.shields.io/badge/LICENSE-MIT-c40000.svg?style=for-the-badge)](https://github.com/Pharuxtan/ICSA/blob/master/LICENSE)

#### ICSA is an archive file format based on brotli compression

## Installation

```
npm install --save icsa
```

## Examples

```js
const {createICSAFile, createEICSAFile, writeICSAFile, writeEICSAFile, writeICSADir, readICSAFile, readEICSAFile} = require("icsa");

// Create File
let file = await createICSAFile("path/to/dir"); // => <Buffer ...> // Use await createEICSAFile("path/to/file.icsa", "32 key length") for create encrypted icsa;

// Write File
let write = await writeICSAFile("path/to/dir"[, "path/to/file.icsa"]); // => 'file "path/to/file.icsa" created' // Use await writeEICSAFile("path/to/file.icsa", "32 key length"[, "path/to/file.icsa"]) for write encrypted icsa;

// Read File
let icsa = await readICSAFile("path/to/file.icsa"); // Use await readEICSAFile("path/to/file.icsa", "32 key length") for read encrypted icsa

//Write Dir
let dir = await writeICSADir(/* ICSA class (see readICSAFile) */, "path/to/dir"); // => 'dir "path/to/dir" created'

/*
 * icsa.key => (only on readEICSAFile) The key you entered;
 * icsa.magic => Magic number "ICSA"
 * icsa.dir => All dirs and files:
 * {
 *   "/": {"file.ext": <Buffer ...>, ...},
 *   "/folder": {...}
 * }
 * icsa.error => "null" if there has been no errors
 */
```

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