unrelative

1.0.0 • Public • Published

npm mit license build status coverage status deps status

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 MIT license

Copyright (c) 2015 Charlike Mike Reagent, contributors.
Released under the MIT license.


Powered and automated by kdf, March 15, 2015

Package Sidebar

Install

npm i unrelative

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • vanchoy
  • tunnckocore