Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/skiptirengu/anitomyscript
Pure javascript bindings for Anitomy (C++), ported with emscripten
https://github.com/skiptirengu/anitomyscript
anime anitomy anitomy-js emscripten emscritpen javascript
Last synced: about 1 month ago
JSON representation
Pure javascript bindings for Anitomy (C++), ported with emscripten
- Host: GitHub
- URL: https://github.com/skiptirengu/anitomyscript
- Owner: skiptirengu
- License: bsd-2-clause
- Created: 2018-06-13T20:38:42.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-02-18T13:55:23.000Z (10 months ago)
- Last Synced: 2024-04-30T15:10:11.715Z (8 months ago)
- Topics: anime, anitomy, anitomy-js, emscripten, emscritpen, javascript
- Language: JavaScript
- Homepage: https://skiptirengu.github.io/anitomyscript/
- Size: 1.72 MB
- Stars: 9
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# anitomyscript
[![Build Status](https://travis-ci.org/skiptirengu/anitomyscript.svg?branch=master)](https://travis-ci.org/skiptirengu/anitomyscript)Pure javascript bindings for [Anitomy](https://github.com/erengy/anitomy), ported with emscripten. Runs on Node or the browser!
Checkout the [native node bindings](https://github.com/skiptirengu/anitomy-js) for anitomy too!
## Demo
You can test it [here](https://skiptirengu.github.io/anitomyscript/).## Installation
Anitomyscript is pure javascript and doesn't have any dependencies. Simply run
```bash
npm install anitomyscript
```
and you're good to go!## Usage
Node
```js
const anitomy = require('anitomyscript');
await anitomy(file);
```Browser
```htmlwindow.anitomyscript(file).then((res) => console.log(res));
```
## API
### parse(file) -> Promise
Parses a file or an array of files.```js
console.log(
await anitomy("[tlacatlc6] Natsume Yuujinchou Shi Vol. 1v2 & Vol. 2 (BD 1280x720 x264 AAC)")
);
/*
{
"anime_title":"Natsume Yuujinchou Shi",
"audio_term":"AAC",
"file_name":"[tlacatlc6] Natsume Yuujinchou Shi Vol. 1v2 & Vol. 2 (BD 1280x720 x264 AAC)",
"release_group":"tlacatlc6",
"release_version":"2",
"source":"BD",
"video_term":"x264",
"video_resolution":"1280x720",
"volume_number":[
"1",
"2"
]
}
*/
```## Building
* Install dependencies `yarn install`
* Install [emscripten](https://emscripten.org/docs/getting_started/downloads.html)
* Make sure either `EMSCRIPTEN` or `EMSCRIPTEN_ROOT` env variables are set with the emsdk root path
* Run `yarn build`## License
Licensed under [BSD-2-Clause](./LICENSE)