Skip to content

Commit

Permalink
esm
Browse files Browse the repository at this point in the history
  • Loading branch information
Caligo committed Mar 4, 2022
1 parent 1f20aca commit c1fc439
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ $ pnpm install @retraigo/duration.js # PNPM
import Duration from "@retraigo/duration.js"; // Node
import Duration from "https://deno.land/x/[email protected]/index.js" // Deno

const Duration = await import("@retraigo/duration.js") // Node with CommonJS

new Duration(); // Get duration since midnight

new Duration(3545346); // A random duration
Expand Down

0 comments on commit c1fc439

Please sign in to comment.