# path-complete-extname

> path.extname implementation adapted to also include multiple dots extensions.

Latest version **1.0.0** (published 2018-03-07) · 0 weekly downloads

## Install

```sh
npm install path-complete-extname
pnpm add path-complete-extname
yarn add path-complete-extname
bun add path-complete-extname
```

## Health

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

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-03-07 |
| First published | 2014-08-27 |
| Weekly downloads | 0 |
| TypeScript types | separate (@types/path-complete-extname) |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 12.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Ruy Adorno |
| Maintainers | ruyadorno |
| Keywords | path, extname, extension, file, fs |

## Links

- npm: https://www.npmjs.com/package/path-complete-extname
- Repository: https://github.com/ruyadorno/path-complete-extname
- Issues: https://github.com/ruyadorno/path-complete-extname/issues
- npm.io page: https://npm.io/package/path-complete-extname

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2018-03-07
- 0.1.0 — 2014-08-27

## README

# path-complete-extname

version: 0.1.0

[![Build Status](https://travis-ci.org/ruyadorno/path-complete-extname.svg?branch=master)](https://travis-ci.org/ruyadorno/path-complete-extname)

[path.extname](http://nodejs.org/api/path.html#path_path_extname_p) implementation adapted to also include multiple dots extensions.


## About

This module contains the native implementation of [Node.js](http://nodejs.org/) `path.extname` method adapted to get complete extension names.

### Example

```js
  var path = require('path');
  var pathCompleteExtname = require('path-complete-extname');

  var filename = 'myfile.tar.gz';

  path.extname(filename); // .gz
  pathCompleteExtname(filename); // .tar.gz
```

For more information about what filenames are valid and what will be returned in each case, see the **test.js** file.


## License

Released under the [MIT License](http://www.opensource.org/licenses/mit-license.php).

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