tree: cf0c3d4c4a56fc7c7516fdef5cae4785a4c14995 [path history] [tgz]
  1. index.js
  2. license
  3. package.json
  4. readme.md
node_modules/strip-outer/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