Skip to content

Instantly share code, notes, and snippets.

@jgwill
Created November 14, 2018 18:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jgwill/23758a8d2c22147ccecb7101a02fe676 to your computer and use it in GitHub Desktop.
Save jgwill/23758a8d2c22147ccecb7101a02fe676 to your computer and use it in GitHub Desktop.
@stcgoal Combine 2 string to make a Path compatible with windows and linux
var p = require('path');
var tpath = 'tmp';
tpath = p.join(tpath, 'mysubdir');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment