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'

    Install

    npm i strip-outer

    DownloadsWeekly Downloads

    3,102,800

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    2.48 kB

    Total Files

    4

    Last publish

    Collaborators

    • sindresorhus