Package Exports
- file-suffix
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (file-suffix) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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