egoist / suffix

Add suffix to a filename.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

suffix('/a/b/c', '.umd.js')
//=> /a/b/c.umd.js

API

suffix(filename, [suffix])

filename

Type: string

suffix

Type: string

The suffix string to be added.

License

MIT © EGOIST

About

Add suffix to a filename.

License:MIT License


Languages

Language:JavaScript 100.0%