# meant

> Like the `Did you mean?` in git for npm

Latest version **2.0.1** (published 2020-11-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install meant
pnpm add meant
yarn add meant
bun add meant
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2020-11-17 |
| First published | 2016-09-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 46 |
| Author | Daijiro Wachi |
| Maintainers | watilde |
| Keywords | meant |

## Links

- npm: https://www.npmjs.com/package/meant
- Repository: https://github.com/watilde/meant
- Homepage: https://github.com/watilde/meant#readme
- Issues: https://github.com/watilde/meant/issues
- npm.io page: https://npm.io/package/meant

## Recent versions

- 2.0.1 (latest) — 2020-11-17
- 2.0.0 — 2020-11-17
- 1.0.3 — 2020-11-17
- 1.0.2 — 2020-07-21
- 1.0.1 — 2017-08-23
- 1.0.0 — 2016-09-08

## README

# meant ![Build status](https://github.com/watilde/meant/workflows/Node.js%20CI/badge.svg)

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

```js
const meant = require('meant')
const result = meant('foa', ['foo', 'bar', 'baz'])
// => [ 'foo' ]
```

## Installation

Download node at [nodejs.org](http://nodejs.org) and install it, if you haven't already.

```sh
npm install meant --save
```


## Tests

```sh
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](https://github.com/feross/standard): JavaScript Standard Style
- [standard-version](https://github.com/conventional-changelog/standard-version): replacement for `npm version` with automatic CHANGELOG generation
- [tap](https://github.com/tapjs/node-tap): A Test-Anything-Protocol library


## License

MIT

_Generated by [package-json-to-readme](https://github.com/zeke/package-json-to-readme)_

---
_Source: https://npm.io/package/meant · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
