tmpa
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

tmpa npm

Get unique temp file or dir path.

Install

$ yarn add tmpa

Usage

const getTempFilePath: (extension?: string) => Promise<string>

const getTempDirPath: (prefix?: string) => Promise<string>
import { getTempFilePath, getTempDirPath } from 'tmpa'

console.log(
  await getTempFilePath('png')
)
// /private/var/folders/…/….png

console.log(
  await getTempDirPath('prefix-')
)
// /private/var/folders/…/prefix-…

/tmpa/

    Package Sidebar

    Install

    npm i tmpa

    Weekly Downloads

    2

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    3.56 kB

    Total Files

    5

    Last publish

    Collaborators

    • deepsweet