absolute

Test if a path (string) is absolute

absolute

Test if a path (string) is absolute

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

MIT