Sometimes I just want to scream
npm install is-relative-path
var isRelative = require('is-relative-path'); isRelative('../'); // true isRelative('/'); // false