Muqriz 48f16bfc3e initail first | 4 mesi fa | |
---|---|---|
.. | ||
node_modules/escape-string-regexp | 4 mesi fa | |
index.js | 4 mesi fa | |
license | 4 mesi fa | |
package.json | 4 mesi fa | |
readme.md | 4 mesi fa |
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