Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
- updated recommended approach when importing Croner on a CommonJS project
  • Loading branch information
iisalazar authored and Hexagon committed May 18, 2023
1 parent b3bcc37 commit 979dfbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ Using Node.js or Bun
// ESM Import ...
import { Cron } from "croner";

// ... or CommonJS Require
const Cron = require("croner");
// ... or CommonJS Require, destructure to add type hints
const { Cron } = require("croner");
```

Using Deno
Expand Down

0 comments on commit 979dfbc

Please sign in to comment.