2.0.1 • Published 2 years ago

check-str v2.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

check-str

Check string for an array of words

usage

const checker = require('check-str')

// true
checker(['foo', 'bar'], 'foo bar')

// true
checker(['foo', 'bar'], 'foo OHMYWHATISHEDOINGOVERTHERE bar')

// false
checker(['foo', 'bar'], 'bar foo')

// false
checker(['foo', 'bar'], 'foo what comes after foo again??')

// new feature - now can be case insensitive!
checker(['FOO', 'bar'], 'FoO bAr', true)
2.0.1

2 years ago

2.0.0

2 years ago

1.0.0

2 years ago