serverless/lib/plugins/run/utils/getTmpDirPath.js
2017-08-08 20:19:30 +07:00

11 lines
268 B
JavaScript

'use strict';
const path = require('path');
const os = require('os');
const crypto = require('crypto');
const getTmpDirPath = () => path.join(os.tmpdir(),
'tmpdirs-serverless', 'serverless', crypto.randomBytes(8).toString('hex'));
module.exports = getTmpDirPath;