This package has been deprecated

Author message:

no longer supported

choirlesstmpdir

1.0.0 • Public • Published

tmpdir

Creates and deletes temporary directories.

Installation

npm install https://github.com/glynnbird/tmpdir

Usage

const tmpdir = require('tmpdir')
const path = require('path')
const fs = require('fs')

// make temporary directory
const tempPath = tmpdir.createTmpDirectory()

// write some temporary files
const p = path.join(tempPath, 'myfile.txt')
fs.writeFileSync(p, 'Hello World')

// tidy up
tmpdir.removeTmpDirectory()

Readme

Keywords

Package Sidebar

Install

npm i choirlesstmpdir

Weekly Downloads

0

Version

1.0.0

License

Apache-2.0

Unpacked Size

1.68 kB

Total Files

3

Last publish

Collaborators

  • glynnbird