anime-name-tool
v1.0.6
Published
A parser for japanese anime filenames.
Downloads
235
Readme
AnimeNameTool
A parser for japanese anime filenames.
With full typescript support.
Links
- GitHub: https://github.com/MagmaBlock/AnimeNameTool
- NPM: https://www.npmjs.com/package/anime-name-tool
Usage
- Install this packege by your package manager.
- Import it.
import { parseFileName } from "anime-name-tool";
const result = parseFileName(
"[Sakurato] RWBY Hyousetsu Teikoku [05][HEVC-10bit 1080p AAC][CHS&CHT].mp4"
);
console.log(result);
- 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.