backoffice/node_modules/strip-outer
root ab9f8bb658 first commit 2020-02-06 10:09:39 +00:00
..
index.js first commit 2020-02-06 10:09:39 +00:00
package.json first commit 2020-02-06 10:09:39 +00:00
readme.md first commit 2020-02-06 10:09:39 +00:00

readme.md

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