suffix

1.0.0 • Public • Published

suffix NPM version NPM downloads Build Status

Add suffix to a filename.

Install

$ npm install --save suffix

Usage

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

Readme

Keywords

Package Sidebar

Install

npm i suffix

Weekly Downloads

208,884

Version

1.0.0

License

MIT

Unpacked Size

2.59 kB

Total Files

5

Last publish

Collaborators

  • kchan
  • rem