get-temp-path

Get the path of the tmp dir and can optionally generate a random file name (+tmp path)

Usage no npm install needed!

<script type="module">
  import getTempPath from 'https://cdn.skypack.dev/get-temp-path';
</script>

README

get-temp-path

Get the path of the tmp dir of your os:

const osTmpPath=require("get-temp-path")();

Get the path of the tmp dir + a random file name

const randomFilePathThatDoesNotExist=require("get-temp-path")(true);

© Sharkbyteprojects