# remove-ext

> Remove the extension from the string path to file

Latest version **1.0.0** (published 2014-12-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install remove-ext
pnpm add remove-ext
yarn add remove-ext
bun add remove-ext
```

## 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.0.0 |
| Published | 2014-12-01 |
| First published | 2014-12-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.8.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Fredrik Forsmo |
| Maintainers | frozzare |
| Keywords | remove, extension |

## Links

- npm: https://www.npmjs.com/package/remove-ext
- Repository: https://github.com/frozzare/remove-ext
- Issues: https://github.com/frozzare/remove-ext/issues
- npm.io page: https://npm.io/package/remove-ext

## Recent versions

- 1.0.0 (latest) — 2014-12-01

## README

# remove-ext [![Build Status](https://secure.travis-ci.org/frozzare/remove-ext.png?branch=master)](http://travis-ci.org/frozzare/remove-ext)

Remove the extension from the string path to file. It's similar to [path.basename](http://nodejs.org/api/path.html#path_path_basename_p_ext).

Install the module with: `npm install remove-ext`

## Example

```javascript
var rmExt  = require('remove-ext')
    path   = '/path/to/gif.gif',
    result = rmExt(path, 'gif');

console.log(result); // 'path/to/gif'
```

## License
Copyright (c) 2014 Fredrik Forsmo  
Licensed under the MIT license.

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