Detalhes do pacote

meant

watilde2.8mMIT2.0.1

Like the Did you mean? in git for npm

meant

readme (leia-me)

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

changelog (log de mudanças)

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

2.0.1 (2020-11-17)

Bug Fixes

2.0.0 (2020-11-15)

1.0.3 (2020-11-15)

Bug Fixes

  • remove unused files from npm package (#8) (966a826)

1.0.2 (2020-07-19)

Bug Fixes

  • deps: bump standard, standard-version and tap (d31fb06)
  • deps: patch update in lock file (4e699ee)

1.0.1 (2017-08-23)

Bug Fixes

  • package: tweak the line (915d949)

1.0.0 (2016-09-08)

Bug Fixes

  • deps: install devDeps and update tests (d766d6f)
  • run-script: add npm run release command (9387904)
  • test: add test.js (65b6e99)
  • travis: add .travis.yml (24d918c)

Features

  • new-meant: add index.js (7289b99)