Skip to content

Commit

Permalink
📖 docs: Fix examples in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
cheap-glitch committed Sep 30, 2020
1 parent 6048902 commit bfd96f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ mi-cron
</h1>

```javascript
const { parseCron } = require('mi-cron');
const { parseCron } = require('@cheap-glitch/mi-cron');

console.log(parseCron.nextDate('*/5 6-12 3 3 *').toUTCString());
// Wed, 03 Mar 2021 06:00:00
Expand Down Expand Up @@ -44,7 +44,7 @@ months and days of the week), or `undefined` if the expression is invalid (wrong
syntax, unsupported instruction, impossible range, etc).

```javascript
const { parseCron } = require('mi-cron');
const { parseCron } = require('@cheap-glitch/mi-cron');

console.log(parseCron('*/5 6-10 1,15 * wed'));
// {
Expand All @@ -63,7 +63,7 @@ the second argument, it will start the computation from this time (otherwise it
will use the current datetime at the moment it's called).

```javascript
const { parseCron } = require('mi-cron');
const { parseCron } = require('@cheap-glitch/mi-cron');

console.log(parseCron.nextDate('* * * * *', new Date('01 Jan 2020 00:00:00 GMT')).toUTCString());
// Wed, 01 Jan 2020 00:01:00
Expand Down

0 comments on commit bfd96f1

Please sign in to comment.