npm.io
1.1.0 • Published 8 years ago

get-abs-path

Licence
MIT
Version
1.1.0
Deps
3
Size
4 kB
Vulns
0
Weekly
0

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


Keywords