Skip to content

Commit

Permalink
docs: update README
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed Nov 28, 2023
1 parent 033d48f commit efad279
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 25 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ console.log(textRankExtract("升职加薪,当上CEO,走上人生巅峰。",

## Node.js 支持

- `v16`
- `v18`
- `v20`

Expand Down
48 changes: 24 additions & 24 deletions package.json
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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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"
}
Expand Down

0 comments on commit efad279

Please sign in to comment.