1.0.0 • Published 7 years ago

first-path v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

first-path

Build Status tested with jest styled with prettier All Contributors

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