forked from lix-project/lix-website
476 B
476 B
strip-outer
Strip a substring from the start/end of a string
Install
$ npm install --save strip-outer
Usage
const stripOuter = require('strip-outer');
stripOuter('foobarfoo', 'foo');
//=> 'bar'
stripOuter('unicorncake', 'unicorn');
//=> 'cake'
License
MIT © Sindre Sorhus