node package manager
Easy sharing. Manage teams and permissions with one click. Create a free org »

absolute

absolute

Test if a path (string) is absolute

Installation

npm install absolute

Usage

var absolute = require('absolute');
 
absolute('/home/dave');
// => true 
 
absolute('/something');
// => true 
 
absolute('./myfile');
// => false 
 
absolute('temp');
// => false 

License

MIT