strip-outer ![Build Status](https://camo.githubusercontent.com/93ab57fcdc94f3c05773b2078a1a8186640d6a87f531d0ddf5fe9ff00544d4f6/68747470733a2f2f7472617669732d63692e6f72672f73696e647265736f726875732f73747269702d6f757465722e7376673f6272616e63683d6d6173746572)
Strip a substring from the start/end of a string
Install
$ npm install strip-outer
Usage
const stripOuter = require('strip-outer');
stripOuter('foobarfoo', 'foo');
//=> 'bar'
stripOuter('unicorncake', 'unicorn');
//=> 'cake'
License
MIT © Sindre Sorhus