2.0.1 • Published 5 years ago

meant v2.0.1

Weekly downloads
1,087,072
License
MIT
Repository
github
Last release
5 years ago

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

@case-app/case-cli@casejs/case-clikilli8n-react-native-fast-image@kimonocloud/kimono-manifest-generator@ezziepos-commerce/ezziepos-cli@everything-registry/sub-chunk-2149wuchuanjameslinenode.js1hubot-budah1-cli-coreh1-cli-frameworklogaftermajor-version-checkreaction-cli@webpack-contrib/cli-utils@tlukastee/medusa-cli@throttleup/gatsby@teewoeijer/cli@timhall/cli@traverse-medusa/cli@zakariaelas/dusame-cli@zakariaelas/test-dusame-cli@cirrusct/cli@0xcda7a/npm@8medusa/cli421752593pro@7hci/gatsby-pge@aiminaabeejs/aiminaabee-cli@cristianps1988/ds-template@alisafavi123/medusa-cli@ai-lion/medusa-clitldrawlignin@beisen/npmzcatalyst-cli-test-alphawebpack-commandvinpm@infinitebrahmanuniverse/nolb-mea@krenaldi/learnstorybook-design-system-template@kuinox/testpackagethatnooneshoulduse@kuinox/testpackagethatnooneshoulduseever@lona/docs@netlify/content-engine@kimonocloud/manifest-generator@salomvary/npm@pkorsholm/medusa-clinpm5vnpmcnpm-prognst-clinull-session-npmpzmtestnode-getoptsnot-bundled-npmqxf2006hf0216react-picky-with-clearshaocongwangcommandoscontent-enginecommand-line-applicationdatetimemodulegatsbygamelynx-gatsby-clienvalid-old-node-versions@mathieudutour/gatsby-cli@fsdkjs/fsdk-cli@arielapaula/components@arielapaula/test@dgcode/gscript@mavenjs/maven-cli@novapo/medusa-cli@novapo/medusajs-medusa-cli@ascorbic/gatsby@etohq/cli@jasonssun/npm@hyperone/cli-core@hyperone/cli-framework@jeremybarbet/gatsby-cli@metaverse-ese-test-example/cli@medusajs/medusa-cli@medusajs/cli@dylanvann/gatsby@skedulr/nebula-ui-library@k38/learnstorybook-design-system-template
2.0.1

5 years ago

2.0.0

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

8 years ago

1.0.0

9 years ago