mirror of
https://github.com/crazy-max/ghaction-upx.git
synced 2025-02-16 16:20:37 -07:00
476 B
476 B
strip-outer ![Build Status](https://travis-ci.org/sindresorhus/strip-outer.svg?branch=master)
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