string-case-match
v1.0.2
Published
string matching library with support of camel case, dash case, etc...
Downloads
2
Readme
string-case-match
String matching class. Given a set of strings to match, will be able to search it by different input.
Installation and usage
With node.js
npm install string-case-match
var StringCaseMatch = require("string-case-match");
console.log(new StringCaseMatch(["hello"], { start: "<i>", end: "</i>" }).matches("hell"));
In browser with require.js
require(["string-case-match"], function(StringCaseMatch) {
console.log(new StringCaseMatch(["hello"], { start: "<i>", end: "</i>" }).matches("hell"));
})
Without require.js:
<script src="path/to/string-case-match.js"></script>
<script>
console.log(new StringCaseMatch(["hello"], { start: "<i>", end: "</i>" }).matches("hell"));
</script>