@lukeboyle/get-filename-from-path

1.0.3 • Public • Published

get-filename-from-path

Usage

import getFilenameFromPath from '@lukeboyle/get-filename-from-path';

getFilenameFromPath('/some/path/some-file.js');

// => 'some-file'

API

getFilenameFromPath

Arguments

  • path

Return value

  • filename - The filename extracted from the path provided in argument one

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    0
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i @lukeboyle/get-filename-from-path

Weekly Downloads

0

Version

1.0.3

License

MIT

Last publish

Collaborators

  • lukeboyle