@dan-uni/dan-any-plugin-detaolu 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.babelrc.json +12 -0
- package/LICENSE +674 -0
- package/README.md +25 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +732 -0
- package/dist/index.js.LICENSE.txt +6 -0
- package/dist/index.test.d.ts +1 -0
- package/dist/index.umd.min.js +31217 -0
- package/dist/index.umd.min.js.LICENSE.txt +28 -0
- package/dist/pakku.js/index.d.ts +47 -0
- package/dist/pakku.js/similarity_stub.d.ts +9 -0
- package/dist/pakku.js/types.d.ts +70 -0
- package/dist/static/wasm/54a7637a81e5f86e.module.wasm +0 -0
- package/package.json +39 -0
- package/rslib.config.ts +27 -0
- package/src/index.test.ts +39 -0
- package/src/index.ts +70 -0
- package/src/pakku.js/index.ts +543 -0
- package/src/pakku.js/similarity-gen.js +338 -0
- package/src/pakku.js/similarity-gen.wasm +0 -0
- package/src/pakku.js/similarity_stub.ts +95 -0
- package/src/pakku.js/types.ts +196 -0
- package/tsconfig.json +106 -0
package/README.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# dan-any-plugin-detaolu 弹幕随心转(反套路插件)
|
|
2
|
+
|
|
3
|
+
[](https://github.com/ani-uni/danuni/actions/workflows/npm-dan-any-plugin-detaolu.yml)
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
基于 pakku.js[^1] 核心功能制作的弹幕过滤器,使用参数及全部功能可参见其仓库。
|
|
8
|
+
|
|
9
|
+
## Usage 使用方法
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
import { UniPool } from "@dan-uni/dan-any";
|
|
13
|
+
import detaolu from "@dan-uni/dan-any-plugin-detaolu";
|
|
14
|
+
|
|
15
|
+
const pool = UniPool.create();
|
|
16
|
+
const d = (await pool.pipe(detaolu({ MAX_COSINE: 1000 }))).minify();
|
|
17
|
+
console.log(d);
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## License 许可证
|
|
21
|
+
|
|
22
|
+
Released under the GNU GENERAL PUBLIC LICENSE (GPL) 3.0.
|
|
23
|
+
本库采用 GPL 3.0 or later 许可证发布。
|
|
24
|
+
|
|
25
|
+
[^1]: 对于`src/pakku.js`内的文件,使用了[xmcp/pakku.js](https://github.com/xmcp/pakku.js)的代码(GPL-3.0 LICENSE),并对其进行了一定修改使其可在该项目下使用。
|
package/dist/index.d.ts
ADDED