New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

string-comparison

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

string-comparison - npm Package Compare versions

Comparing version 1.0.9 to 1.1.0

dist/index.d.ts

30

package.json
{
"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
![npm bundle size](https://img.shields.io/bundlephobia/minzip/string-comparison)
![npm](https://img.shields.io/npm/dm/string-comparison)
[![GitHub stars](https://img.shields.io/github/stars/Rabbitzzc/js-string-comparison)](https://github.com/Rabbitzzc/js-string-comparison/stargazers)
[![GitHub license](https://img.shields.io/github/license/Rabbitzzc/js-string-comparison)](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)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc