Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

string-compare-diff

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

string-compare-diff - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

4

package.json
{
"name": "string-compare-diff",
"version": "0.0.5",
"version": "0.0.6",
"description": "Compare the difference between two strings using distance. Returns a number 0 to 1 showing exactly how related the two strings are.",

@@ -11,3 +11,3 @@ "main": "app.js",

"type": "git",
"url": "git@github-github_personal:DanielDwyerPersonal/string-compare.git"
"url": "git@github-github_personal:DanielDwyerPersonal/string-compare-diff.git"
},

@@ -14,0 +14,0 @@ "keywords": [

@@ -28,11 +28,11 @@ # string-compare-diff

```js
compareStrings.strSimilarity("Dan", "Daniel")
compareStr.strSimilarity("Dan", "Daniel")
//returns 0.5
```
```js
compareStrings.strSimilarity("America The Beautiful", "Canada")
compareStr.strSimilarity("America The Beautiful", "Canada")
//returns 0.14285714285714285
```
```js
compareStrings.strSimilarity("Donald", "Trump")
compareStr.strSimilarity("Donald", "Trump")
//returns 0

@@ -39,0 +39,0 @@ ```

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