Name
Last commit
Last update
..
node_modules/escape-string-regexp 15/07/2020
index.js 15/07/2020
license 15/07/2020
package.json 15/07/2020
readme.md 15/07/2020

strip-outer Build Status

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 :copyright: Sindre Sorhus