package
string matching library with support of camel case, dash case, etc...
npm install string-case-matchGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
String matching class. Given a set of strings to match, will be able to search it by different input.
With node.js
npm install string-case-matchvar 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>