temp - npm
temp has a similar API to the fs module. ... Or get it directly from: http://github.com/bruce/node-temp ... and openSync , temporary directories with mkdir and mkdirSync , or you can get a unique name in the system temporary directory with path ....