os-random-tmpdir

Return randomized hashed path under the temp dir


Keywords
tmp, tmpdir, os-tmpdif, random
License
MIT
Install
npm install os-random-tmpdir@0.1.1

Documentation

os-random-tmpdir Build Status

Return randomized hashed path under the temp dir. It is extension of os-tmpdir

Install

$ npm install --save os-random-tmpdir

Usage

const randomTmpdir = require('os-random-tmpdir');

randomTmpdir('PREFIX');
//=> /var/folders/wf/bjnghq1d7k15dxmw2sw4h4yh0000gp/T/PREFIX/da4f8ecb4d66f2f50ae04e25dfcbcf03

API

randomTmpdir(prefix)

prefix

Type: string

return path with prefix subpath

License

MIT © Jimmy Moon