1.0.0 • Published 7 years ago

prepend-date v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

Prepend the Date and Time

Installation and Usage

First, install with npm install --save prepend-date

Then require it in and use it like so:

var prepend = require('prepend-date');
var array = ['Stephen', 'Charlie', 'Tanya'];

console.log(prepend.prependDateTime(array));

It prepends the current date in MM/DD format to each string and returns a new array. Expected outcome:

'11/15 Stephen', '11/15 Charlie', '11/15 Tanya'