unrelative
v1.0.0
Published
Transform relative path or glob pattern to absolute
Downloads
4
Readme
Transform relative path or glob pattern to absolute
Install
npm i --save unrelative
npm test
Usage
For more use-cases see the tests
var unrelative = require('unrelative');
unrelative(process.cwd(), 'a/b/c/**/*.js');
//=> '/home/user/dev/a/b/c/**/*.js'
unrelative(process.cwd(), '!a/b/c/**/*.js');
//=> '!/home/user/dev/a/b/c/**/*.js'
unrelative(process.cwd(), 'a/b/c/d.js');
//=> '/home/user/dev/a/b/c/d.js'
unrelative(process.cwd(), '!a/b/c/d.js');
//=> '!/home/user/dev/a/b/c/d.js'
Author
Charlike Mike Reagent
License
Copyright (c) 2015 Charlike Mike Reagent, contributors.
Released under the MIT
license.
Powered and automated by kdf, March 15, 2015