wordsninja 1.0.0 → 2.0.0
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/NOTICE +21 -0
- package/README.md +287 -122
- package/index.d.mts +10 -0
- package/index.d.ts +94 -0
- package/index.js +616 -178
- package/index.mjs +4 -0
- package/package.json +71 -29
- package/words-en.json +126138 -0
- package/words-en.txt +0 -126138
package/index.mjs
ADDED
package/package.json
CHANGED
|
@@ -1,29 +1,71 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "wordsninja",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "Split
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "wordsninja",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "Split an English string that has no spaces into words. Zero dependencies, offset-aware, with custom dictionaries and TypeScript types.",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"module": "index.mjs",
|
|
7
|
+
"types": "index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": {
|
|
11
|
+
"types": "./index.d.mts",
|
|
12
|
+
"default": "./index.mjs"
|
|
13
|
+
},
|
|
14
|
+
"require": {
|
|
15
|
+
"types": "./index.d.ts",
|
|
16
|
+
"default": "./index.js"
|
|
17
|
+
},
|
|
18
|
+
"default": "./index.js"
|
|
19
|
+
},
|
|
20
|
+
"./package.json": "./package.json"
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"index.js",
|
|
24
|
+
"index.mjs",
|
|
25
|
+
"index.d.ts",
|
|
26
|
+
"index.d.mts",
|
|
27
|
+
"words-en.json",
|
|
28
|
+
"NOTICE"
|
|
29
|
+
],
|
|
30
|
+
"sideEffects": false,
|
|
31
|
+
"engines": {
|
|
32
|
+
"node": ">=18"
|
|
33
|
+
},
|
|
34
|
+
"scripts": {
|
|
35
|
+
"test": "node --test test/wordsninja.test.js test/robustness.test.js",
|
|
36
|
+
"test:watch": "node --test --watch test/wordsninja.test.js test/robustness.test.js",
|
|
37
|
+
"build:dictionary": "node scripts/build-dictionary.js",
|
|
38
|
+
"bench": "node bench/bench.js",
|
|
39
|
+
"prepublishOnly": "npm test"
|
|
40
|
+
},
|
|
41
|
+
"keywords": [
|
|
42
|
+
"split",
|
|
43
|
+
"text",
|
|
44
|
+
"sentence",
|
|
45
|
+
"english",
|
|
46
|
+
"ninja",
|
|
47
|
+
"words",
|
|
48
|
+
"word",
|
|
49
|
+
"splitter",
|
|
50
|
+
"tokenizer",
|
|
51
|
+
"tokenize",
|
|
52
|
+
"segmentation",
|
|
53
|
+
"text-segmentation",
|
|
54
|
+
"word-segmentation",
|
|
55
|
+
"wordninja",
|
|
56
|
+
"no-spaces",
|
|
57
|
+
"capitalize",
|
|
58
|
+
"camelcase",
|
|
59
|
+
"camel-case"
|
|
60
|
+
],
|
|
61
|
+
"author": "Parsa Kafi <parselearn@gmail.com> (https://parsa.ws)",
|
|
62
|
+
"license": "MIT",
|
|
63
|
+
"repository": {
|
|
64
|
+
"type": "git",
|
|
65
|
+
"url": "git+https://github.com/parsakafi/wordsninja.git"
|
|
66
|
+
},
|
|
67
|
+
"bugs": {
|
|
68
|
+
"url": "https://github.com/parsakafi/wordsninja/issues"
|
|
69
|
+
},
|
|
70
|
+
"homepage": "https://parsa.ws/projects/wordsninja-js-package"
|
|
71
|
+
}
|