Kevin 29b9a0c50c clean && clean html base %!s(int64=5) %!d(string=hai) anos
..
index.js 29b9a0c50c clean && clean html base %!s(int64=5) %!d(string=hai) anos
license 29b9a0c50c clean && clean html base %!s(int64=5) %!d(string=hai) anos
package.json 29b9a0c50c clean && clean html base %!s(int64=5) %!d(string=hai) anos
readme.md 29b9a0c50c clean && clean html base %!s(int64=5) %!d(string=hai) anos

readme.md

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 © Sindre Sorhus