JSPM

file-suffix

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 457
  • Score
    100M100P100Q108120F
  • License MIT

A file suffix is a substring of basename after the first dot

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

NPM Status Travis Status Windows Status Coverage Status

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

License

MIT © Andrew Abramov