npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@bili-vd-bak/l1

v1.1.3

Published

A tool to parse the title of bangumi etc. Its name and function logic originate from L1(LabelFirstTitleParser) of open-ani/ani.

Downloads

54

Readme

L1

Build and Publish Package

A tool to parse the title of bangumi etc. Its name and function logic originate from L1(LabelFirstTitleParser) of open-ani/ani.
这是一个解析番剧标题的工具,它的名字和功能逻辑源自于 open-ani/ani 中的L1(LabelFirstTitleParser)。

Usage 使用

View in NPM(npmjs.com) or JSR(jsr.io).

The lib is written in TypeScript, and the usage is detailed in the code hint after import.
本库使用TypeScript编写,使用方法详见导入后的代码提示。

[!CAUTION]
npmjs源(@bili-vd-bak/l1)入口文件经编译处理,可直接在各环境(含浏览器)使用(见dist目录)。
jsr源(@bvd/l1)入口文件为TypeScript源码,需编译后使用(见src目录)。

Node/Deno (Tested)

# use @bili-vd-bak from npmjs.com
pnpm add @bili-vd-bak/l1
# use @bvd/l1 from jsr.io
pnpm dlx jsr add @bvd/l1
bunx jsr add @bvd/l1
# use @bvd/l1 with Deno
deno add @bvd/l1
// npmjs.com
import L1 from '@bili-vd-bak/l1';
// Deno/jsr.io
import L1 from '@bvd/l1';

const result = L1("[DBD-Raws][约会大作战 第一季/Date a Live S1/デート・ア・ライブ][导演剪辑版/Director's Cut/ディレクターズカット版][01-12TV全集+OAD][1080P][BDRip][HEVC-10bit][简繁外挂][FLAC][MKV]");

console.log(result);

Browser (Not tested)

<script src="https://cdn.jsdelivr.net/npm/@bili-vd-bak/l1@1/dist/index.min.js"></script>

Or

<script type="module" src="https://cdn.jsdelivr.net/npm/@bvd/l1@1/dist/index.js">
  const result = L1("[DBD-Raws][约会大作战 第一季/Date a Live S1/デート・ア・ライブ][导演剪辑版/Director's Cut/ディレクターズカット版][01-12TV全集+OAD][1080P][BDRip][HEVC-10bit][简繁外挂][FLAC][MKV]");
  console.log(result);
</script>

Contribution 贡献

Use pnpm run test or pnpm run test:ui to test.
使用 pnpm run testpnpm run test:ui 进行测试。

Use pnpm run lint to check codes.
使用 pnpm run lint 检查代码检查。

Use pnpm run build to build (You have to build before push).
使用 pnpm run build 进行构建(推送前必须先构建)。

Welcome Issue or PR.
欢迎提交Issue和Pull Request。

Logic function are also suggested to be submitted to the upstream open-ani/ani. 逻辑功能建议同时向上游 open-ani/ani 提交。

Current Upstream SHA: 09c9075(master)、130f84e(PR)
当前上游SHA: 09c9075(master)、130f84e(PR)

License 许可证

Released under the GNU LESSER GENERAL PUBLIC LICENSE (LGPL) 3.0.
本库采用 LGPL 3.0 许可证发布。