1.0.0 • Published 9 years ago

unrelative v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

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