@redsift/text-utilities
v0.1.4
Published
Tiny library wrapping text processing code snippets.
Downloads
1
Readme
text-utilities
text-utilities
tiny library wrapping text processing code snippets.
Usage
Browser
<script src="//static.redsift.io/reusable/text-utilities/latest/text-utilities.umd-es2015.min.js">
</script>
<script>
var words = text_utilities.html('split this into.words');
console.log(words);
</script>
ES6
import { splitWords } from "@redsift/text-utilities";
let words = splitWords('split this into.words');
...
Require
var textUtilities = require("@redsift/text-utilities");
var words = textUtilities.splitWords('split this into.words');
...
Function|Signature|Returns|Description --------|---------|-------|----------- splitWords|string|Array|Splits words based on common boundary characters trimEmailThreads|string|string|Clip text to exclude common reply styles