get-file-name
v2.1.1arrow_drop_downv2.1.1
v2.1.0
v2.0.9
v2.0.8
v2.0.6
v2.0.5
v2.0.1
v1.1.1
v1.1.0
v1.0.8
v1.0.5
v1.0.4
v1.0.3
STATUS
Passing
DOWNLOADS
1,702
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
5 years ago
SIZE
520 B
get file name from path
1 contributor
Like
Install get-file-name as a package?
Copied
npm i @bit/joshk.jotils.get-file-name
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example modifieddraft
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
and packages in Bit or NPM to the example. any of the 1 million componentstoggle layout
No preview available
chevron_left
chevron_right
getFileName (
path:
) : string
string
get file name from path
Example
Argument
path:
string
path to get file name
Returns
string
file name
Test Summary
getFileName check javascript file | Pass |
getFileName check txt file with letter and number | Pass |
getFileName check json file when path include file name | Pass |