1.1.0 • Published 6 years ago

get-abs-path v1.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

get-abs-path

build status AppVeyor Build Status

Get absolute path for file names in specified directory


Get it!

npm install --save get-abs-path

Usage

var fs = require('fs')
var getAbsPath = require('get-abs-path')
var dir = 'C:/Users/' || process.cwd()

fs.readdir(dir, function (err, data) {
  if (err) throw err
  console.log(getAbsPath(dir, data))
})

API

getAbsPath(dir, arr)


License

MIT