Skip to content

Instantly share code, notes, and snippets.

@sebv
Last active August 29, 2015 14:20
Show Gist options
  • Save sebv/960e372891e156903976 to your computer and use it in GitHub Desktop.
Save sebv/960e372891e156903976 to your computer and use it in GitHub Desktop.
var path = require('path');
console.log(path.join('a/b/c/', '.')); // -> a/b/c
console.log(path.join('a/b/c', '.')); // -> a/b/c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment