1.0.2 • Published 10 years ago
resolve-from-here v1.0.2
resolve-from-here
Like path.resolve(), except that paths are resolved relative to __dirname.
Installation
npm install resolve-from-here --save
Usage
var resolve = require('resolve-from-here');
var path = require('path');
var path1 = resolve('foo');
var path2 = path.resolve(__dirname, 'foo');
assert.equal(path1, path2);