strip-outer
v2.0.0
Published
Strip a substring from the start/end of a string
Downloads
18,184,578
Maintainers
Readme
strip-outer
Strip a substring from the start/end of a string
Install
$ npm install strip-outer
Usage
import stripOuter from 'strip-outer';
stripOuter('foobarfoo', 'foo');
//=> 'bar'
stripOuter('unicorncake', 'unicorn');
//=> 'cake'