pkg-temp

A temporary directory automatically created specifically for your package to use for caching or storage.

Usage no npm install needed!

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

README

Package temp Travis CI Build Status

A temporary directory automatically created specifically for your package to use for caching or storage.

NPM Badge

Install

npm install pkg-temp

Usage

const tempDir = require("pkg-temp");

console.log(tempDir);
//=> 'C:\\Users\\richi\\AppData\\Local\\Temp\\pkg-temp'

API

pkgTemp

Type: string

The directory to use.