# strip-outer

> Strip a substring from the start/end of a string

Latest version **2.0.0** (published 2021-08-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install strip-outer
pnpm add strip-outer
yarn add strip-outer
bun add strip-outer
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2021-08-19 |
| First published | 2015-01-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | ^12.20.0 \|\| ^14.13.1 \|\| >=16.0.0 |
| Dependencies | 0 |
| Unpacked size | 2.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 23 |
| Author | Sindre Sorhus |
| Maintainers | sindresorhus |
| Keywords | strip, trim, remove, outer, string, substring, start, end, wrap, leading, trailing |

## Links

- npm: https://www.npmjs.com/package/strip-outer
- Repository: https://github.com/sindresorhus/strip-outer
- Homepage: https://github.com/sindresorhus/strip-outer#readme
- Issues: https://github.com/sindresorhus/strip-outer/issues
- Funding: https://github.com/sponsors/sindresorhus
- npm.io page: https://npm.io/package/strip-outer

## Alternatives

- [express-promise-router](https://npm.io/package/express-promise-router.md) — 736.1K weekly downloads
- [next-usequerystate](https://npm.io/package/next-usequerystate.md) — 29.8K weekly downloads
- [@bitkyc08/opencodex](https://npm.io/package/@bitkyc08/opencodex.md) — 4.6K weekly downloads
- [lynkr](https://npm.io/package/lynkr.md) — 575 weekly downloads
- [baremetal.js](https://npm.io/package/baremetal.js.md) — 42 weekly downloads

## Recent versions

- 2.0.0 (latest) — 2021-08-19
- 1.0.1 — 2018-03-23
- 1.0.0 — 2015-01-16

## README

# strip-outer

> Strip a substring from the start/end of a string

## Install

```
$ npm install strip-outer
```

## Usage

```js
import stripOuter from 'strip-outer';

stripOuter('foobarfoo', 'foo');
//=> 'bar'

stripOuter('unicorncake', 'unicorn');
//=> 'cake'
```

---
_Source: https://npm.io/package/strip-outer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
