Get a path in the cwd
Unlike the resolve-*
these modules allow resolution of non-module paths.
npm install --save path-cwd
yarn add path-cwd
// ES2015
import cwd from 'path-cwd'
// CommonJS
var cwd = require('path-cwd')
Get a path in the cwd.
- path {String} (optional) path to get in the cwd
Returns a string.
import cwd from 'path-cwd'
cwd('pineapple') //=> C:/User/Spongebob Squarepants/projects/bikini-bottom/pineapple
All pull requests and issues welcome!
If you're not sure how, check out the great video tutorials on egghead.io!
MIT © Sam Gluck