Manipulates substrings
$ npm install --save manipulate-substrings
##Usage
var ManipulateSubstring = require("manipulate-substring")
ManipulateSubstring.colorize("blue", "really", "His house was really nice")
Name | Type | Description |
---|---|---|
colorize | String |
string that represents a color |
substringToManipulate | String |
subtring to be manipulated |
string | String |
parent string |
ManipulateSubstring.colorize("blue", "really", "His house was really nice")
Name | Type | Description |
---|---|---|
colorize | String |
string that represents a color |
index | Number |
Index of word you want to color |
string | String |
parent string |
console.log(ManipulateSubstring.colorizeAtIndex("blue", 1, "Hi Joe! How are you"))
Name | Type | Description |
---|---|---|
colorize | String |
string that represents a color |
startIndex | Number |
Index where you want to start the coloring |
endIndex | Number |
Index where you want to stop the coloring |
string | String |
parent string |
console.log(ManipulateSubstring.colorizeBetweenCharacterIndexes("blue", 2, 5, "Thisss is kinda crazy I guess"))
MIT © Joe Gesualdo