string-surround
Surround a string with another string
Install
npm install --save string-surround
Usage
// => '123hello123' // => 'ABCABC'
API
stringSurround(string, [surroundingString])
Returns string
surrounded with surroundingString
.
string
type: string
The string to surround.
surroundingString
type: string
default: ''
The string to surround around string
.
LICENSE
MIT © Dustin Specker