Skip to content

Latest commit

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

AnimeNameTool

A parser for japanese anime filenames.

With full typescript support.

Links

Usage

  1. Install this packege by your package manager.
  2. Import it.
import{parseFileName}from"anime-name-tool";constresult=parseFileName("[Sakurato] RWBY Hyousetsu Teikoku [05][HEVC-10bit 1080p AAC][CHS&CHT].mp4");console.log(result);
  1. See the result.
{title: 'RWBY Hyousetsu Teikoku',year: null,episode: 5,episodeIndex: {index: 35,length: 2,content: '05'},group: [{name: 'Sakurato',parsedName: '桜都字幕组'}],groupIndex: {index: 0,length: 10,content: '[Sakurato]'},subtitle: {language: ['CHS','CHT'],subtitleFeatures: []},source: {broadcastChannel: [],mediaType: []},quality: {videoCodec: 'HEVC',audioCodec: 'AAC',resolution: '1080P',fps: null,color: '10bit'},extension: {name: 'mp4',parsedName: 'MP4',type: 'Video'}}

TypeScript

This package is full typed. The result of parseFileName is typed as ParseResult.

See type definition here.

About

A parser for japanese anime filenames. With full typescript support.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages