test_weekofyear.js 127 Bytes
var dateFormat = require('../lib/dateformat.js');

var val = process.argv[2] || new Date();
console.log(dateFormat(val, 'W'));