Files
Tommmy 730a701deb unfix: add some bugs
呃这个可能有点炸了
730a701deb · 2025-10-16 17:39:50 +08:00
History
..
2025-10-16 17:39:50 +08:00
2025-10-16 17:39:50 +08:00
2025-10-16 17:39:50 +08:00
2025-10-16 17:39:50 +08:00

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