# suffix

> Add suffix to a filename.

Latest version **1.0.0** (published 2018-03-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install suffix
pnpm add suffix
yarn add suffix
bun add suffix
```

## 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 | 2018-03-08 |
| First published | 2016-06-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4 |
| Dependencies | 0 |
| Unpacked size | 2.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | EGOIST |
| Maintainers | kchan, rem |
| Keywords | suffix |

## Links

- npm: https://www.npmjs.com/package/suffix
- Repository: https://github.com/egoist/suffix
- npm.io page: https://npm.io/package/suffix

## Recent versions

- 1.0.0 (latest) — 2018-03-08
- 0.1.1 — 2018-03-08
- 0.1.0 — 2016-06-22

## README

# suffix [![NPM version](https://img.shields.io/npm/v/suffix.svg)](https://npmjs.com/package/suffix) [![NPM downloads](https://img.shields.io/npm/dm/suffix.svg)](https://npmjs.com/package/suffix) [![Build Status](https://img.shields.io/circleci/project/egoist/suffix/master.svg)](https://circleci.com/gh/egoist/suffix)

> Add suffix to a filename.

## Install

```bash
$ npm install --save suffix
```

## Usage

```js
const suffix = require('suffix')

suffix('a.js', '.min')
//=> a.min.js
```

## API

### suffix(filename, [suffix])

#### filename

Type: `string`

#### suffix

Type: `string`  

The suffix string to be added.

## License

MIT © [EGOIST](https://github.com/egoist)

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