resolve-from-here
Like path.resolve(), except that paths are resolved relative to __dirname.
Last updated 5 years ago by bluejeansandrain .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install resolve-from-here 
SYNC missed versions from official npm registry.

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);

Current Tags

  • 1.0.2                                ...           latest (5 years ago)

3 Versions

  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |