suffix
Add suffix to a filename.
Last updated 3 years ago by rem .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install suffix 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.0                                ...           latest (3 years ago)

3 Versions

  • 1.0.0                                ...           3 years ago
  • 0.1.1                                ...           3 years ago
  • 0.1.0                                ...           4 years ago
Maintainers (2)
Downloads
Today 5
This Week 300
This Month 791
Last Day 60
Last Week 308
Last Month 1,661
Dependencies (0)
None
Dev Dependencies (2)

Copyright 2014 - 2016 © taobao.org |