aboutsummaryrefslogtreecommitdiff
path: root/node_modules/strip-outer/readme.md
blob: 4f4bee296035839a2e9fd45a33540005d1b043ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# 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)