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