# anisub

> 애니메이션 한국어 자막 다운로드 API

Latest version **0.3.7** (published 2017-12-20) · 0 weekly downloads

## Install

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

Provides the command `anisub`.

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.7 |
| Published | 2017-12-20 |
| First published | 2016-12-18 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Known vulnerabilities | 0 (+4 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 9 |
| Author | nupamore |
| Maintainers | nupamore |
| Keywords | 애니메이션, 자막, animation, smi, anissia, ohli |

## Links

- npm: https://www.npmjs.com/package/anisub
- Repository: https://github.com/nupamore/anisub
- Homepage: https://github.com/nupamore/anisub#readme
- Issues: http://github.com/nupamore/anisub/issues
- npm.io page: https://npm.io/package/anisub

## Dependencies (8)

- [chalk](https://npm.io/package/chalk.md) ^1.1.3
- [request](https://npm.io/package/request.md) ^2.79.0
- [bluebird](https://npm.io/package/bluebird.md) ^3.4.6
- [inquirer](https://npm.io/package/inquirer.md) ^2.0.0
- [commander](https://npm.io/package/commander.md) ^2.9.0
- [decompress](https://npm.io/package/decompress.md) ^4.2.0
- [htmlparser2](https://npm.io/package/htmlparser2.md) ^3.9.2
- [request-promise](https://npm.io/package/request-promise.md) ^4.1.1

## Alternatives

- [@luma.gl/experimental](https://npm.io/package/@luma.gl/experimental.md) — 77.1K weekly downloads
- [persona-harness](https://npm.io/package/persona-harness.md) — 4.7K weekly downloads
- [@tsparticles/effect-bubble](https://npm.io/package/@tsparticles/effect-bubble.md) — 4.6K weekly downloads
- [f3d](https://npm.io/package/f3d.md) — 730 weekly downloads
- [spark-html-motion](https://npm.io/package/spark-html-motion.md) — 298 weekly downloads

## Recent versions

- 0.3.7 (latest) — 2017-12-20
- 0.3.6 — 2017-12-20
- 0.3.5 — 2017-12-20
- 0.3.4 — 2017-12-20
- 0.3.3 — 2017-12-20
- 0.3.2 — 2017-12-20
- 0.3.1 — 2017-05-17
- 0.3.0 — 2017-05-17
- 0.2.3 — 2016-12-28
- 0.2.2 — 2016-12-28
- 0.2.1 — 2016-12-28
- 0.2.0 — 2016-12-20
- 0.1.1 — 2016-12-18

## README

# anisub
크로스플랫폼 애니메이션 한국어 자막 다운로드 CLI & API

http://www.anissia.net/?m=1&b=4  
http://ohli.moe/api  (종영 미지원)

<br>

![sample](http://nupamore.github.io/img/anisub_sample.gif)


## Installation

    $ npm install anisub -g


## Usage
<pre>
Usage: anisub [options] [command]

  Commands:

    now [name] [user]            애니메이션의 최신화를 검색합니다
    end [name] [user]            종영된 애니메이션을 검색합니다
    down [name] [user] [filter]  애니메이션의 자막을 다운로드합니다

  Options:

    -h, --help     output usage information
    -V, --version  output the version number
    -e, --end      종영된 애니메이션
</pre>
<br>

## API
``` js
const anisub = require('anisub')

// 최신화 검색
anisub.now( '애니제목' )
// 자막 다운로드
.then( result => anisub.down(result) )
.then( files => console.log(files) )
```

### anisub.now( string, string )
` anisub.now('애니제목', '자막제작자') `  
<br>
문자열 혹은 정규식을 전달하면 해당하는 첫번째 객체를 선택하여 Promise객체를 반환합니다.

### anisub.down( object, [regex..] )
`anisub.down(reuslt, ['.zip', 'Leopard'])`  
<br>
`.now()`의 결과를 가지고 파싱하여 첫번째 필터로 다운받을 파일을 선택하고 두번째 필터로 압축을 풀 파일을 선택합니다.

### anisub.end( string, string )
`anisub.end('애니제목', '자막제작자')`  
<br>
종영된 작품들을 찾습니다.

<br>

## etc
`anisub.parser.anime( name, ended ) :Promise`  
`anisub.parser.subtitle( aniId ) :Promise`  
`anisub.parser.post( url ) :Promise`  
<br>
`anisub.file.directory( path ) :string`  
`anisub.file.download( url, filename ) :Promise`  
`anisub.file.list( zipname ) :Promise`  
`anisub.file.unpack( zipname, files ) :Promise`  
`anisub.file.unlinkSync( filename )`

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