|
|
пре 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