1.0.1 • Published 7 years ago
date-plus-string v1.0.1
date-plus-string
Usage
After adding date-plus-string
to a project, pass an array of strings to it,
along with a callback. An array of those same strings, with the date pre-
appended, will be returned.
'use strict'
const date = require('date-plus-string')
const names = ['Monico', 'Julia', 'Rod']
date(names, (err, res) => {
if (err) return console.log(err)
for (var i = 0; i < res.length; i++) {
console.log(res[i])
}
})
// 2016-12-05 Monico
// 2016-12-05 Julia
// 2016-12-05 Rod