This package has been deprecated

Author message:

move to @the-/tmp ( https://github.com/the-labo/the/tree/master/packages/tmp#readme )

the-tmp

1.0.11 • Public • Published

the-tmp

Build Status npm Version JS Standard

Tmp file creator

Installation

$ npm install the-tmp --save

Usage

'use strict'
 
const theTmp = require('the-tmp')
 
async function tryExample () {
  // Create tmp file and clean up automatically
  await theTmp.while(async (filename) => {
    console.log('Generated file', filename)
  })
 
  // Manually cleanup
  {
    const { cleanup, filename } = await theTmp.generate()
    console.log('Generated file', filename)
    cleanup() // Cleanup the file
  }
}
 
tryExample().catch((err) => console.error(err))
 

API Guide

License

This software is released under the MIT License.

Links

Readme

Keywords

Package Sidebar

Install

npm i the-tmp

Weekly Downloads

17

Version

1.0.11

License

MIT

Unpacked Size

66.3 kB

Total Files

33

Last publish

Collaborators

  • okunishinishi