1.1.0 • Published 6 years ago
get-abs-path v1.1.0
get-abs-path
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))
})