site/node_modules/rw/test/cat-async

11 lines
244 B
Plaintext
Raw Permalink Normal View History

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