mirror of
https://github.com/crazy-max/ghaction-upx.git
synced 2024-12-24 17:16:08 -07:00
29 lines
476 B
Markdown
29 lines
476 B
Markdown
|
# strip-outer [![Build Status](https://travis-ci.org/sindresorhus/strip-outer.svg?branch=master)](https://travis-ci.org/sindresorhus/strip-outer)
|
||
|
|
||
|
> Strip a substring from the start/end of a string
|
||
|
|
||
|
|
||
|
## Install
|
||
|
|
||
|
```
|
||
|
$ npm install --save strip-outer
|
||
|
```
|
||
|
|
||
|
|
||
|
## Usage
|
||
|
|
||
|
```js
|
||
|
const stripOuter = require('strip-outer');
|
||
|
|
||
|
stripOuter('foobarfoo', 'foo');
|
||
|
//=> 'bar'
|
||
|
|
||
|
stripOuter('unicorncake', 'unicorn');
|
||
|
//=> 'cake'
|
||
|
```
|
||
|
|
||
|
|
||
|
## License
|
||
|
|
||
|
MIT © [Sindre Sorhus](https://sindresorhus.com)
|