Files
Tommmy 730a701deb unfix: add some bugs
呃这个可能有点炸了
2025-10-16 17:39:50 +08: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