Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/toyobayashi/acb.js

CRI Middleware ACB format file extracting in Node.js
https://github.com/toyobayashi/acb.js

Last synced: 28 days ago
JSON representation

CRI Middleware ACB format file extracting in Node.js

Awesome Lists containing this project

README

        

# acb.js

[![Build status](https://travis-ci.com/toyobayashi/acb.js.svg?branch=master)](https://travis-ci.com/toyobayashi/acb.js/)

For all your ACB extracting needs. Based on [acb.py](https://github.com/summertriangle-dev/acb.py).

## Usage

### CLI

``` bash
npm install acb -g
acb somefile.acb [-o [outputdir]] [-l] [-t] [-c] [-n] [-w] [-s]
```

### Programing

``` js
const { Acb } = require('acb')
const acb = new Acb('path/to/somefile.acb')
// or
// const acb = new Acb(fs.readFileSync('path/to/somefile.acb'), awbFilePathOrBuffer)

// Async
acb.extract() // => Promise
acb.extract('path/to/out') // => Promise
acb.extract(() => console.log('Extract done.')) // => void
acb.extract('path/to/out', () => console.log('Extract done.')) // => void

// Sync
acb.extractSync() // => void
acb.extractSync('path/to/out') // => void
```