get-new-date

Returns new Date(). No more! Just to do unit testing right.

Usage no npm install needed!

<script type="module">
  import getNewDate from 'https://cdn.skypack.dev/get-new-date';
</script>

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