first add

This commit is contained in:
Your Name
2026-07-28 21:25:30 +08:00
commit edf4d743cb
482 changed files with 19191 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
var tmp = require("./index.js");
var Promise = require("bluebird"); // just for delay, this works with native promises
// disposer
tmp.withFile((path) => {
console.log("Created at path", path);
return Promise.delay(1000);
}).then(() => {
console.log("File automatically disposed");
});