first-path
v1.0.0
Published
get first path
Downloads
2
Readme
first-path
get first path
Install
$ npm install first-path
Usage
const firstPath = require('first-path')
firstPath('src/path/to/file')
//=> 'src'
API
firstPath(filePath: string): string
filePath
Type: string
Contributors
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!
License
MIT © akameco