anitomy
TypeScript icon, indicating that this package has built-in type declarations

0.0.34 • Public • Published

Anitomy

version GitHub License CI

A TypeScript port of Anitomy inspired by AnitomySharp. All credits to erengy for the actual library.

More features:

  • Implemented without any dependencies, which supports run in Node.js, Deno, Bun, and Browser
  • Optimized for parsing Chinese torrent name from 動漫花園

👷‍♂️ Still work in progress.

Installation

npm i anitomy

Usage

import { parse } from 'anitomy'

const info = parse(`[Lilith-Raws] 熊熊勇闖異世界 PUNCH! / Kuma Kuma Kuma Bear S02 - 02 [Baha][WEB-DL][1080p][AVC AAC][CHT][MP4]`)
{
  "audio": {
    "term": "AAC",
  },
  "episode": {
    "number": 2,
    "numberAlt": undefined,
    "title": undefined,
  },
  "file": {
    "checksum": undefined,
    "extension": "MP4",
    "name": "[Lilith-Raws] 熊熊勇闖異世界 PUNCH! / Kuma Kuma Kuma Bear S02 - 02 [Baha][WEB-DL][1080p][AVC AAC][CHT][MP4]",
  },
  "language": "CHT",
  "month": undefined,
  "release": {
    "group": "Lilith-Raws",
    "version": undefined,
  },
  "season": "2",
  "source": "WEB-DL",
  "subtitles": undefined,
  "title": "熊熊勇闖異世界 PUNCH! / Kuma Kuma Kuma Bear S02",
  "type": undefined,
  "video": {
    "resolution": "1080p",
    "term": "AVC",
  },
  "volume": {
    "number": undefined,
  },
  "year": undefined,
}

Who is using?

License

MIT License © 2023 XLor

Package Sidebar

Install

npm i anitomy

Weekly Downloads

210

Version

0.0.34

License

MIT

Unpacked Size

118 kB

Total Files

8

Last publish

Collaborators

  • yjl9903