1.0.0 • Published 7 years ago
first-path v1.0.0
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):
akameco💻 📖 ⚠️ 🚇 |
---|
This project follows the all-contributors specification. Contributions of any kind welcome!
License
MIT © akameco
1.0.0
7 years ago