node-nlp
Version:
Library for NLU (Natural Language Understanding) done in Node.js
29 lines (16 loc) • 476 B
Markdown
# strip-outer [](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)