meant

WebJar for meant

License

License

MIT
Categories

Categories

Ant Build Tools
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

meant
Last Version

Last Version

1.0.3
Release Date

Release Date

Type

Type

jar
Description

Description

meant
WebJar for meant
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/watilde/meant

Download meant

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/meant/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>meant</artifactId>
    <version>1.0.3</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/meant/
implementation 'org.webjars.npm:meant:1.0.3'
// https://jarcasting.com/artifacts/org.webjars.npm/meant/
implementation ("org.webjars.npm:meant:1.0.3")
'org.webjars.npm:meant:jar:1.0.3'
<dependency org="org.webjars.npm" name="meant" rev="1.0.3">
  <artifact name="meant" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='meant', version='1.0.3')
)
libraryDependencies += "org.webjars.npm" % "meant" % "1.0.3"
[org.webjars.npm/meant "1.0.3"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

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

> [email protected] 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

Versions

Version
1.0.3
1.0.2
1.0.1