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

clustring

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

clustring - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

package.json
{
"name": "clustring",
"version": "0.0.1",
"version": "0.0.2",
"description": "Algorithms for clustering strings",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -85,2 +85,3 @@ clustring

1. Update `version` in `package.json`
2. `git commit -m 'vx.x.x && git tag vx.x.x && git push && git push origin vx.x.x`
2. `npm publish`

@@ -222,6 +222,15 @@ function stripLatin1Accent (c) {

const arr = s.split(Whitespace)
arr.sort()
const tokens = s.split(Whitespace)
tokens.sort()
return arr.join(' ')
const uniqueTokens = []
let lastToken = null
for (const token of tokens) {
if (token !== lastToken) {
uniqueTokens.push(token)
lastToken = token
}
}
return uniqueTokens.join(' ')
}

@@ -228,0 +237,0 @@

@@ -10,2 +10,3 @@ import fingerprint from './fingerprint'

[ 'words out of order', 'of order out words' ],
[ 'words duplicate words', 'duplicate words' ],
[ '', '' ],

@@ -12,0 +13,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