change ref docs url format from 1_5 to v1.5

This commit is contained in:
Phillip Wittrock
2017-01-13 09:56:34 -08:00
parent f3231a2130
commit 69582c2d8c
3768 changed files with 8 additions and 8 deletions
@@ -0,0 +1,20 @@
#!/usr/bin/env node
var argv = require('optimist')
.usage('Count the lines in a file.\nUsage: $0')
.demand('f')
.alias('f', 'file')
.describe('f', 'Load a file')
.argv
;
var fs = require('fs');
var s = fs.createReadStream(argv.file);
var lines = 0;
s.on('data', function (buf) {
lines += buf.toString().match(/\n/g).length;
});
s.on('end', function () {
console.log(lines);
});