Socket
Socket
Sign inDemoInstall

@extra-string/jaro-winkler-distance

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @extra-string/jaro-winkler-distance

Get Jaro-Winkler distance between strings.


Version published
Maintainers
1
Created

Readme

Source

Get Jaro-Winkler distance between strings.

const jaroWinklerDistance = require('@extra-string/jaro-winkler-distance');
// jaroWinklerDistance(<string-1>, <string-2>, [scaling-factor=0.1], [boost-threshold=0.7])

jaroWinklerDistance('no', 'match');
// 0
jaroWinklerDistance('teapot', 'teapot');
// 1
jaroWinklerDistance('jelly', 'jellyfish');
// 0.9111111111111111

extra-string

Keywords

FAQs

Last updated on 24 Dec 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc