strip-outer

Strip a substring from the start/end of a string

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
strip-outer
2102.0.03 years ago9 years agoMinified + gzip package size for strip-outer in KB

Readme

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'