get-center
v1.3.0
Published
get center string
Downloads
3
Readme
get-center
get center string
npm install get-center
import { getCenter } from 'get-center'
console.log(getCenter('[hello][world]', '[', ']')) // hello
console.log(getCenter('[hello][world]', '[', ']', true)) // hello][world