This repository has been archived on 2020-11-02. You can view files and clone it, but cannot push or open issues or pull requests.
TripSit_Suite/node_modules/strip-outer/readme.md
2020-11-01 22:46:04 +00:00

476 B

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