1.0.0 • Published 8 years ago
first-path v1.0.0
first-path
get first path
Install
$ npm install first-pathUsage
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
8 years ago