1.0.2 • Published 10 years ago

string-case-match v1.0.2

Weekly downloads
17
License
-
Repository
github
Last release
10 years ago

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>
1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago