forked from yanyiwu/nodejieba
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
033d48f
commit efad279
Showing
2 changed files
with
24 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -128,7 +128,6 @@ console.log(textRankExtract("升职加薪,当上CEO,走上人生巅峰。", | |
|
||
## Node.js 支持 | ||
|
||
- `v16` | ||
- `v18` | ||
- `v20` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,7 @@ | ||
{ | ||
"name": "nodejs-jieba", | ||
"description": "chinese word segmentation for node", | ||
"version": "0.1.1", | ||
"author": "Mister-Hope <[email protected]>", | ||
"license": "MIT", | ||
"contributors": [ | ||
"Yanyi Wu <[email protected]>", | ||
"Mister-Hope <[email protected]>" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "http://github.com/Mister-Hope/nodejs-jieba.git" | ||
}, | ||
"description": "chinese word segmentation for node", | ||
"keywords": [ | ||
"chinese", | ||
"segment", | ||
|
@@ -20,9 +10,16 @@ | |
"中文分词", | ||
"结巴分词" | ||
], | ||
"main": "./dist/index.cjs", | ||
"module": "./dist/index.mjs", | ||
"typings": "./dist/index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "http://github.com/Mister-Hope/nodejs-jieba.git" | ||
}, | ||
"license": "MIT", | ||
"author": "Mister-Hope <[email protected]>", | ||
"contributors": [ | ||
"Yanyi Wu <[email protected]>", | ||
"Mister-Hope <[email protected]>" | ||
], | ||
"exports": { | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
|
@@ -31,9 +28,9 @@ | |
"default": "./dist/index.mjs" | ||
} | ||
}, | ||
"engines": { | ||
"node": ">= 16" | ||
}, | ||
"main": "./dist/index.cjs", | ||
"module": "./dist/index.mjs", | ||
"typings": "./dist/index.d.ts", | ||
"files": [ | ||
"deps", | ||
"dist", | ||
|
@@ -44,24 +41,23 @@ | |
"binary": { | ||
"module_name": "jieba", | ||
"module_path": "./build/Release/", | ||
"host": "https://github.com/Mister-Hope/nodejs-jieba/releases/download/", | ||
"remote_path": "v{version}", | ||
"package_name": "{module_name}-v{version}-{node_abi}-{platform}-{arch}.tar.gz" | ||
"package_name": "{module_name}-v{version}-{node_abi}-{platform}-{arch}.tar.gz", | ||
"host": "https://github.com/Mister-Hope/nodejs-jieba/releases/download/" | ||
}, | ||
"scripts": { | ||
"binary:build": "node-gyp configure && node-pre-gyp build", | ||
"binary:rebuild": "node-pre-gyp rebuild", | ||
"binary:pack": "node-pre-gyp package", | ||
"binary:rebuild": "node-pre-gyp rebuild", | ||
"binary:release": "node-pre-gyp-github publish --release", | ||
"build": "rollup -c rollup.config.ts --configPlugin esbuild", | ||
"clean": "rimraf build/ dist/", | ||
"install": "node-pre-gyp install --fallback-to-build", | ||
"prepublishOnly": "pnpm clean && pnpm build", | ||
"test": "vitest", | ||
"test:benchmark": "vitest bench", | ||
"test:coverage": "vitest --coverage", | ||
"install": "node-pre-gyp install --fallback-to-build", | ||
"prepublishOnly": "pnpm clean && pnpm build" | ||
"test:coverage": "vitest --coverage" | ||
}, | ||
"packageManager": "[email protected]", | ||
"dependencies": { | ||
"@mapbox/node-pre-gyp": "^1.0.11", | ||
"node-addon-api": "^7.0.0", | ||
|
@@ -79,6 +75,10 @@ | |
"typescript": "5.3.2", | ||
"vitest": "0.34.6" | ||
}, | ||
"packageManager": "[email protected]", | ||
"engines": { | ||
"node": "^18.0.0 || ^20.0.0" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
} | ||
|