# filename-ends-with

> Check if filename ends with a specific string.

Latest version **1.1.1** (published 2016-08-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install filename-ends-with
pnpm add filename-ends-with
yarn add filename-ends-with
bun add filename-ends-with
```

## 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.1 |
| Published | 2016-08-02 |
| First published | 2016-08-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Damir Mustafin |
| Maintainers | frenchbread |
| Keywords | Filename, ends, with, extension |

## Links

- npm: https://www.npmjs.com/package/filename-ends-with
- Repository: https://github.com/frenchbread/filename-ends-with
- Homepage: https://github.com/frenchbread/filename-ends-with#readme
- Issues: https://github.com/frenchbread/filename-ends-with/issues
- npm.io page: https://npm.io/package/filename-ends-with

## Dependencies (1)

- [lodash](https://npm.io/package/lodash.md) ^4.14.1

## Recent versions

- 1.1.1 (latest) — 2016-08-02
- 1.1.0 — 2016-08-01
- 1.0.0 — 2016-08-01

## README

# filename-ends-with

> Check if filename ends with specific string.

### Installation

```
$ npm install filename-ends-with --save
```

### Usage

```js

import fEndsWith from 'filename-ends-with';

fEndsWith('somefilename.jpg', '.jpg');
// => true

fEndsWith('somefilename.jpeg', '.jpg');
// => false

fEndsWith('somefilename.txt', ['.md', '.json', '.txt']);
// => true

```

### Tests

```
$ npm test
```

### License
[MIT](https://github.com/frenchbread/filename-ends-with/blob/master/LICENSE)

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