Socket
Book a DemoInstallSign in
Socket

levenmorpher

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

levenmorpher

Morph one word into another, one letter at a time

latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
2
Created
Source

levenmorpher

Build Coverage Downloads Size

A JavaScript function and command-line tool that morphs one word into another, one letter-change at a time.

It uses a very liberal English word list. It might be nice to use something less permissive to avoid really obscure words that basically no one’s ever heard of.

Install

npm:

npm install levenmorpher

API

var levenmorpher = require('levenmorpher')

console.log(levenmorpher('ruby', 'node'))

Yields:

['ruby', 'rube', 'robe', 'rode', 'node']

CLI

Usage: levenmorpher [options] <word> <word>

Morph one word into another, one letter at a time

Options:

  -h, --help           output usage information
  -v, --version        output version number

Usage:

# output distance
$ levenmorpher ruby node
ruby
rube
robe
rode
node

License

MIT © Zeke Sikelianos

Keywords

levenshtein

FAQs

Package last updated on 14 Feb 2020

Did you know?

Socket

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