strip-outer

2.0.0 • Public • Published

strip-outer

Strip a substring from the start/end of a string

Install

$ npm install strip-outer

Usage

import stripOuter from 'strip-outer';

stripOuter('foobarfoo', 'foo');
//=> 'bar'

stripOuter('unicorncake', 'unicorn');
//=> 'cake'

Package Sidebar

Install

npm i strip-outer

Weekly Downloads

3,917,975

Version

2.0.0

License

MIT

Unpacked Size

2.48 kB

Total Files

4

Last publish

Collaborators

  • sindresorhus