11 lines
174 B
JavaScript
11 lines
174 B
JavaScript
|
'use strict'
|
||
|
|
||
|
// readable timestamp
|
||
|
module.exports = exports = ( ) =>
|
||
|
'\x1b[32m'
|
||
|
+ ( new Date )
|
||
|
.toJSON( )
|
||
|
.slice( 0, 23 )
|
||
|
.replace( 'T', ' ' )
|
||
|
+ '\x1b[0m'
|