# strip-extension

> Strip extension from a path. Also works when query parameters are involved

Latest version **1.1.0** (published 2015-02-03) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2015-02-03 |
| First published | 2014-09-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Scott Corgan |
| Maintainers | scottcorgan |
| Keywords | string, extension, query |

## Links

- npm: https://www.npmjs.com/package/strip-extension
- Repository: https://github.com/scottcorgan/strip-extension
- Issues: https://github.com/scottcorgan/strip-extension/issues
- npm.io page: https://npm.io/package/strip-extension

## Dependencies (1)

- [zip-object](https://npm.io/package/zip-object.md) ^0.1.0

## Alternatives

- [gamedig](https://npm.io/package/gamedig.md) — 29.3K weekly downloads
- [join-monster](https://npm.io/package/join-monster.md) — 12.8K weekly downloads
- [masked](https://npm.io/package/masked.md) — 5.5K weekly downloads
- [@comunica/actor-query-process-explain-logical](https://npm.io/package/@comunica/actor-query-process-explain-logical.md) — 4.7K weekly downloads
- [@veracity/vui](https://npm.io/package/@veracity/vui.md) — 4.6K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2015-02-03
- 1.0.1 — 2014-09-23
- 1.0.0 — 2014-09-23

## README

# strip-extension

Strip extension from a path. Also works when query parameters are involved.

## Install

```
npm install strip-extension --save
```

## Usage

```js
var stripExtension = require('strip-extension');

var pathname = '/some/path/to/file.html?param=test';

console.log(stripExtension(pathname)); // OUTPUT: /some/path/to/file?param=test
```

## Run Tests

```
npm install
npm test
```

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