extract-file-name-from-path

v1.0.0arrow_drop_down
v1.0.0
v0.0.5
v0.0.4
v0.0.3
v0.0.2
v0.0.1
STATUS
Passing
DOWNLOADS
11,948
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
7 years ago
SIZE
2 KB
Recieves a file path and returns the file name
2 contributors
Install extract-file-name-from-path as a package?
Copied
npm i @bit/bit.utils.file.extract-file-name-from-path
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
chevron_left
chevron_right
extractFileNameFromPath (
filePath:string
) : string

Recieves a file path and returns the file name

Argument
filePath: string
Returns
string

Test Summary

extractFileNameFromPath should extract file name from full path

Pass

extractFileNameFromPath should extract file name from partial path

Pass

extractFileNameFromPath should extract file name from path with more than one dot

Pass
Help and resources