path-complete-extname
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/path-complete-extname package

1.0.0 • Public • Published

path-complete-extname

version: 0.1.0

Build Status

path.extname implementation adapted to also include multiple dots extensions.

About

This module contains the native implementation of Node.js path.extname method adapted to get complete extension names.

Example

  var path = require('path');
  var pathCompleteExtname = require('path-complete-extname');
 
  var filename = 'myfile.tar.gz';
 
  path.extname(filename); // .gz
  pathCompleteExtname(filename); // .tar.gz

For more information about what filenames are valid and what will be returned in each case, see the test.js file.

License

Released under the MIT License.

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i path-complete-extname

    Weekly Downloads

    412,646

    Version

    1.0.0

    License

    none

    Unpacked Size

    12.5 kB

    Total Files

    9

    Last publish

    Collaborators

    • ruyadorno