1.0.0 • Published 8 years ago
str-is v1.0.0
str-is
Determine if a string matches a pattern.
Install
npm install --save str-is
Usage
var str_is = require('str-is')
str_is('foo/bar', 'foo/bar')
// => true
str_is('foo*', 'foobar')
// => true
str_is('baz*', 'foobar')
// => false
// Or you can call the "is" method in string instances and pass the pattern...
'foobar'.is('foo*')
// => true