Surround a string with another string
npm install --save string-surround
import stringSurround from 'string-surround'
stringSurround('hello', '123')
// => '123hello123'
stringSurround('', 'ABC')
// => 'ABCABC'
Returns string
surrounded with surroundingString
.
type: string
The string to surround.
type: string
default: ''
The string to surround around string
.
MIT © Dustin Specker