UNPKG

serverless

Version:

Serverless Framework - Build web, mobile and IoT applications with serverless architectures using AWS Lambda, Azure Functions, Google CloudFunctions & more

11 lines (7 loc) 268 B
'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;