UNPKG

gia-cli

Version:

Guardian US Interactive CLI tool

15 lines (11 loc) 270 B
module.exports = function ( name ) { var date = new Date(); return [ date.getFullYear(), pad( date.getMonth() + 1, 2 ), name ].join( '/' ); }; function pad ( num, digits ) { var str = '' + num; while ( str.length < digits ) { str = '0' + str; } return str; }