site/node_modules/rw/test/write-async

8 lines
162 B
Plaintext
Raw Permalink Normal View History

2024-10-14 06:09:33 +00:00
#!/usr/bin/env node
var rw = require("../").dash;
rw.writeFile(process.argv[2] || "-", "Hello, world!", "utf8", function(error) {
if (error) throw error;
});