string-comparison
Advanced tools
Comparing version 1.0.9 to 1.1.0
{ | ||
"name": "string-comparison", | ||
"version": "1.0.9", | ||
"version": "1.1.0", | ||
"description": "A library implementing different string similarity", | ||
"main": "./lib/index.js", | ||
"main": "dist/index.js", | ||
"module": "dist/index.mjs", | ||
"types": "dist/index.d.ts", | ||
"scripts": { | ||
"test": "node ./node_modules/mocha/bin/mocha", | ||
"test": "mocha", | ||
"lint": "eslint src", | ||
"build": "./node_modules/.bin/babel src --out-dir lib" | ||
"build-fast": "tsup src/index.ts --dts --format cjs,esm --minify", | ||
"build": "yarn build-fast", | ||
"watch": "tsup src/index.ts --watch" | ||
}, | ||
@@ -16,3 +20,3 @@ "repository": { | ||
"files": [ | ||
"lib" | ||
"dist" | ||
], | ||
@@ -43,11 +47,15 @@ "keywords": [ | ||
"devDependencies": { | ||
"@babel/cli": "^7.6.4", | ||
"@babel/core": "^7.6.4", | ||
"@babel/node": "^7.6.3", | ||
"@babel/preset-env": "^7.6.3", | ||
"@types/mocha": "^9.1.0", | ||
"@types/node": "^17.0.18", | ||
"@typescript-eslint/eslint-plugin": "^5.12.0", | ||
"@typescript-eslint/parser": "^5.12.0", | ||
"async": "^3.1.0", | ||
"babel-preset-minify": "^0.5.1", | ||
"eslint": "^8.9.0", | ||
"eslint-config-alloy": "^4.5.1", | ||
"mocha": "^6.2.1", | ||
"npm-run-all": "^4.1.5" | ||
"npm-run-all": "^4.1.5", | ||
"ts-node": "^10.5.0", | ||
"tsup": "^5.11.13", | ||
"typescript": "^4.5.5" | ||
} | ||
} |
# string-comparison | ||
 | ||
 | ||
[](https://github.com/Rabbitzzc/js-string-comparison/stargazers) | ||
[](https://github.com/Rabbitzzc/js-string-comparison/blob/master/LICENCE) | ||
@@ -39,4 +43,4 @@ **JavaScript implementation of [tdebatty/java-string-similarity](https://github.com/tdebatty/java-string-similarity)** | ||
```shell | ||
npm install string-comparision --save | ||
yarn add string-comparision | ||
npm install string-comparison --save | ||
yarn add string-comparison | ||
``` | ||
@@ -46,3 +50,3 @@ usage | ||
```js | ||
let stringComparision = require('string-comparision') | ||
let stringComparison = require('string-comparison') | ||
@@ -53,4 +57,4 @@ const Thanos = 'healed' | ||
use by Consine | ||
let cos = stringComparision.consine | ||
// use by cosine | ||
let cos = stringComparison.cosine | ||
@@ -239,16 +243,7 @@ console.log(cos.similarity(Thanos, Rival)) | ||
## Release Notes | ||
## CHANGLOG | ||
[CHANGLOG](./CHANGLOG.md) | ||
### 1.x version | ||
* Basic building | ||
* Cosine | ||
* DiceCoefficient | ||
* JaccardIndex | ||
* Levenshtein | ||
* LongestCommonSubsequence | ||
* MetricLCS | ||
* Add function sortMatch() | ||
## MIT | ||
[MIT](./LICENCE) | ||
[MIT](./LICENCE) |
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
94
1
0
0
23496
12
6
246