node/deps/npm/node_modules/meant
Myles Borins ace4fe566f
deps: update npm to 5.5.1
Closes: https://github.com/nodejs/node/pull/16280

PR-URL: https://github.com/nodejs/node/pull/16509
Fixes: https://github.com/nodejs/node/issues/14161
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
2017-10-29 21:32:15 -04:00
..
.npmignore deps: update npm to 5.5.1 2017-10-29 21:32:15 -04:00
.travis.yml deps: update npm to 5.5.1 2017-10-29 21:32:15 -04:00
CHANGELOG.md deps: update npm to 5.5.1 2017-10-29 21:32:15 -04:00
index.js deps: update npm to 5.5.1 2017-10-29 21:32:15 -04:00
LICENSE deps: update npm to 5.5.1 2017-10-29 21:32:15 -04:00
package.json deps: update npm to 5.5.1 2017-10-29 21:32:15 -04:00
README.md deps: update npm to 5.5.1 2017-10-29 21:32:15 -04:00
test.js deps: update npm to 5.5.1 2017-10-29 21:32:15 -04:00

meant Build Status

Like the Did you mean? in git for npm

API

meant(item, list)

  • item {String} A key for finding an approximate value
  • list {Array} A list for comparing with the item
const meant = require('meant')
const result = meant('foa', ['foo', 'bar', 'baz'])
// => [ 'foo' ]

Installation

Download node at nodejs.org and install it, if you haven't already.

npm install meant --save

Tests

npm install
npm test

> meant@1.0.0 test /Users/watilde/Development/meant
> standard && tap test.js
TAP version 13
# Subtest: test.js
    # Subtest: test vs ['tast', 'tbst', 'tcst', 'foo']
        ok 1 - list has tast
        ok 2 - list has tbst
        ok 3 - list has tcst
        ok 4 - list doesn't have foo
        1..4
    ok 1 - test vs ['tast', 'tbst', 'tcst', 'foo'] # time=11.816ms
    1..1
    # time=44.006ms
ok 1 - test.js # time=249.154ms
1..1
# time=267.371ms

Dependencies

None

Dev Dependencies

  • standard: JavaScript Standard Style
  • standard-version: replacement for npm version with automatic CHANGELOG generation
  • tap: A Test-Anything-Protocol library

License

MIT

Generated by package-json-to-readme