README
get-new-date
Returns new Date(). No more! Just to do unit testing right.
const newDate = require('get-new-date');
const now = newDate();
now instanceof Date; // true
Installation
$ npm install get-new-date --save
Returns new Date(). No more! Just to do unit testing right.
<script type="module">
import getNewDate from 'https://cdn.skypack.dev/get-new-date';
</script>
Returns new Date(). No more! Just to do unit testing right.
const newDate = require('get-new-date');
const now = newDate();
now instanceof Date; // true
$ npm install get-new-date --save