9 line
178 B
JavaScript
Executable File

#!/usr/bin/env node
var rw = require("../").dash;
rw.readFile(process.argv[2] || "-", function(error, contents) {
if (error) throw error;
console.log(contents.length);
});