work.suroh.tk/node_modules/is-relative-path/Readme.md

419 B

is-relative-path npm npm

Sometimes I just want to scream

npm install is-relative-path

Usage

var isRelative = require('is-relative-path');

isRelative('../'); // true
isRelative('/'); // false