npm.io
1.0.1 • Published 9 years ago

amatch

Licence
MIT
Version
1.0.1
Deps
1
Vulns
0
Weekly
0
Stars
1

amatch

Build Status Code Climate Code Coverage npm Version JS Standard

Namespace string matcher

Installation

$ npm install amatch --save

Usage

'use strict'

const amatch = require('amatch')

{
  let match = amatch('foo:*,bar:*')
  console.log(match('foo:1234')) // => true
  console.log(match('bar:1234')) // => true
  console.log(match('baz:1234')) // => false
}

License

This software is released under the MIT License.

Keywords