|
|
5 年之前 | |
|---|---|---|
| .. | ||
| index.js | 5 年之前 | |
| license | 5 年之前 | |
| package.json | 5 年之前 | |
| readme.md | 5 年之前 | |
Strip a substring from the start/end of a string
$ npm install --save strip-outer
const stripOuter = require('strip-outer');
stripOuter('foobarfoo', 'foo');
//=> 'bar'
stripOuter('unicorncake', 'unicorn');
//=> 'cake'
MIT © Sindre Sorhus