Skip to content

rymanalu/str-is

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

str-is Build Status

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.
// Note: Make sure you already require this module before call the is method.
'foobar'.is('foo*')
// => true

About

Determine if a string matches a pattern.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published