site/node_modules/rw/test/wc-async

9 lines
178 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] || "-", function(error, contents) {
if (error) throw error;
console.log(contents.length);
});