file-suffix
v1.0.1
Published
A file suffix is a substring of basename after the first dot
Maintainers
Readme
file-suffix
A file suffix is a substring of basename after the first dot.
Install
$ npm install --save file-suffixUsage
const suffix = require('file-suffix');
suffix('./lib/file.js'); // ➜ js
suffix('index.html'); // ➜ html
suffix('build.tar.gz'); // ➜ tar.gzRelated
License
MIT © Andrew Abramov
