Test if a path (string) is absolute
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
README.md
absolute.js
package.json

README.md

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