All Projects â†’ skiptirengu â†’ anitomy-js

skiptirengu / anitomy-js

Licence: MIT license
Native Node.js wrapper for Anitomy

Programming Languages

C++
36643 projects - #6 most used programming language
javascript
184084 projects - #8 most used programming language
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to anitomy-js

react-native-screen-keyboard
On-screen keyboard with customisable keys and tactile / UI feedback 📱
Stars: ✭ 22 (+4.76%)
Mutual labels:  native
scala-native-starter
A starter for scala-native.
Stars: ✭ 27 (+28.57%)
Mutual labels:  native
GelbooruEnhancement
Image Viewer and Endless Scroll userscripts for Gelbooru and various other boorus
Stars: ✭ 41 (+95.24%)
Mutual labels:  anime
fabric-samples-nodocker
🌱 Deploy fabric-samples without docker. Currently support v1.4.x & 2.0.x .
Stars: ✭ 35 (+66.67%)
Mutual labels:  native
abifestival-app
Cross-platform festival-app built with the Appcelerator Titanium framework
Stars: ✭ 16 (-23.81%)
Mutual labels:  native
windows-app
Official LISTEN.moe Windows-only Client
Stars: ✭ 63 (+200%)
Mutual labels:  anime
titanium-speech
Use the iOS 10 SFSpeechRecognizer API in JavaScript with Appcelerator Hyperloop.
Stars: ✭ 21 (+0%)
Mutual labels:  native
auth0-android-sample
Auth0 Integration Samples for Android Applications
Stars: ✭ 61 (+190.48%)
Mutual labels:  native
myanimelist-api-v2
An awesome wrapper on Nodejs for the new MyAnimeList's API v2!
Stars: ✭ 30 (+42.86%)
Mutual labels:  anime
jikan-nodejs
A Node.js wrapper for Jikan REST API.
Stars: ✭ 16 (-23.81%)
Mutual labels:  anime
AniAPI
Core behind AniAPI HTTP Rest APIs.
Stars: ✭ 144 (+585.71%)
Mutual labels:  anime
weapp-saucenao
微信小程序: 识图娘
Stars: ✭ 19 (-9.52%)
Mutual labels:  anime
ZeldrisRobot
An anime themed group management bot, running on python with telethon and ptb.
Stars: ✭ 41 (+95.24%)
Mutual labels:  anime
toziuha-night-oota
Opensource Metroidvania inspired on Castlevania Order of Ecclesia
Stars: ✭ 78 (+271.43%)
Mutual labels:  anime
qiokian
🙊 live2d anime waifu vuejs component.
Stars: ✭ 34 (+61.9%)
Mutual labels:  anime
node-webrtc
🔌 WebRTC bindings for Node, written according to the W3C specification.
Stars: ✭ 23 (+9.52%)
Mutual labels:  native
microui-odin
A tiny immediate-mode UI library for The Odin Programming Language
Stars: ✭ 24 (+14.29%)
Mutual labels:  native
flitch
🍂 Android Anime Streaming App.
Stars: ✭ 80 (+280.95%)
Mutual labels:  anime
Project-Padoru
Collection of Padoru Images
Stars: ✭ 20 (-4.76%)
Mutual labels:  anime
haxeui-hxwidgets
The hxWidgets backend of the HaxeUI framework -
Stars: ✭ 20 (-4.76%)
Mutual labels:  native

anitomy-js

Actions Status GitHub license

anitomy-js is a Node.js wrapper for Anitomy - a C++ library for parsing anime video filenames.

Requirements

  • Linux: gcc/g++ >= 5
  • Windows: Visual Studio >= 2015 (With C++ build tools)
  • Mac OS >= 10.9 (with Xcode installed, of course)

Installation

With npm do:

npm install anitomy-js

anitomy-js builds it's dependencies upon installation. Please refer to the node-gyp documentation if you're having problems with the build.

Version 1.x

Starting with version 1.0 the minimum supported Node version is 0.12

Changes from version 2.x

Starting with version 2.0, anitomy-js requires C++ 14 and at least Node 4:

  • Linux: GCC/G++ >= 5
  • Windows: Visual Studio >= 2015
  • Mac OS >= 10.9

If you can't update your build tools, all versions from 1.x are compatible with C++ 11.

Changes from version 3.x

Starting with version 3.0 the old callback style with a single argument is deprecated. You should switch to either use the Promise API or a node style callback (err, data). The minimum supported Node version is 6.

Changes from version 4.x

4.x is a complete rewrite from scratch and requires at least Node 8. The old callback style API was completely removed and now the async methods (parse and parseAsync) exposes only the Promise API.

Changes from version 5.x

On version 5.x, anitomy-js switched from using NAN, to the newer NAPI. With this change, all context-related issues should be fixed.

Usage

anitomy-js provides two methods: parse and parseSync. Both methods accept single filename input or an array of filenames for batch parsing.

Additionally you can pass an object as the last parameter to change Anitomy's original parsing options. The options are:

  • allowed_delimiters - defaults to " _.&+,|"
  • ignored_strings - defaults to []
  • parse_episode_number - defaults to true
  • parse_episode_title - defaults to true
  • parse_file_extension - defaults to true
  • parse_release_group - defaults to true

parse(data, [options]) -> Promise<AnitomyResult | AnitomyResult[]>

var anitomy = require('anitomy-js')
anitomy
  .parse('[tlacatlc6] Natsume Yuujinchou Shi Vol. 1v2 & Vol. 2 (BD 1280x720 x264 AAC)')
  .then((data) => console.log(data))

... would be parsed into

{
  "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"]
}

parseSync(data, [options]) -> AnitomyResult | AnitomyResult[]

var anitomy = require('anitomy-js')
var filenames = [
  '[DmonHiro] Magi - The Labyrinth Of Magic - Vol.1v2 (BD, 720p)',
  '[KLF]_D.Gray-man_04V2.avi',
]
console.log(anitomy.parseSync(filenames))

... would be parsed into

[
  {
    "anime_title": "Magi - The Labyrinth Of Magic",
    "file_name": "[DmonHiro] Magi - The Labyrinth Of Magic - Vol.1v2 (BD, 720p)",
    "release_group": "DmonHiro",
    "release_version": "2",
    "source": "BD",
    "video_resolution": "720p",
    "volume_number": "1"
  },
  {
    "anime_title": "D.Gray-man",
    "episode_number": "04",
    "file_extension": "avi",
    "file_name": "[KLF]_D.Gray-man_04V2",
    "release_group": "KLF",
    "release_version": "2"
  }
]

License

Licensed under the incredibly permissive MIT license

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].