0.0.4 • Published 9 years ago

manipulate-substring v0.0.4

Weekly downloads
1
License
MIT
Repository
-
Last release
9 years ago

Manipulate Substring

Manipulates substrings

Install

$ npm install --save manipulate-substrings

##Usage

var ManipulateSubstring = require("manipulate-substring")
ManipulateSubstring.colorize("blue", "really", "His house was really nice")

API

colorize(color, substringToManipulate, string)

NameTypeDescription
colorizeStringstring that represents a color
substringToManipulateStringsubtring to be manipulated
stringStringparent string
ManipulateSubstring.colorize("blue", "really", "His house was really nice")

colorizeAtWordIndex(color, index, string)

NameTypeDescription
colorizeStringstring that represents a color
indexNumberIndex of word you want to color
stringStringparent string
console.log(ManipulateSubstring.colorizeAtIndex("blue", 1, "Hi Joe! How are you"))

colorizeBetweenCharacterIndexes(color, startIndex, endIndex, string)

NameTypeDescription
colorizeStringstring that represents a color
startIndexNumberIndex where you want to start the coloring
endIndexNumberIndex where you want to stop the coloring
stringStringparent string
console.log(ManipulateSubstring.colorizeBetweenCharacterIndexes("blue", 2, 5, "Thisss is kinda crazy I guess"))

License

MIT © Joe Gesualdo

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago