Skip to content

claudetech/co-temp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

temp thunk wrappers for co

Build Status

Installation

$ npm install co-temp

Usage

var temp = require('co-temp').track();

co(function *() {
    var info = yield temp.open('file');
    console.log(info.path);
    var dirPath = yield temp.mkdir('mydir');
    console.log(info.path);

    yield temp.cleanup(); // only if you use track()
});

See temp documentation for more info.

Releases

No releases published

Packages

No packages published