mirror of
https://github.com/serverless/serverless.git
synced 2025-12-08 19:46:03 +00:00
11 lines
268 B
JavaScript
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;
|