2017-09-13 07:52:34 +02:00
..
2017-09-13 07:52:34 +02:00
2017-09-13 07:52:34 +02:00
2017-09-13 07:52:34 +02:00

strip-outer Build Status

Strip a substring from the start/end of a string

Install

$ npm install --save strip-outer

Usage

var stripOuter = require('strip-outer');

stripOuter('foobarfoo', 'foo');
//=> bar

stripOuter('unicorncake', 'unicorn');
//=> cake

License

MIT © Sindre Sorhus