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'

/strip-outer/

    Package Sidebar

    Install

    npm i strip-outer

    Weekly Downloads

    2,861,818

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    2.48 kB

    Total Files

    4

    Last publish

    Collaborators

    • sindresorhus