We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f65057a commit 9999299Copy full SHA for 9999299
1 file changed
Readme.md
@@ -17,10 +17,23 @@ $ dateformat --help
17
18
## Usage
19
20
-As taken from Steven's post, modified to match the Modifications listed above:
+This module supports both ESM and CJS formats.
21
+
22
+ESM:
23
24
```js
25
import dateFormat, { masks } from "dateformat";
26
+```
27
28
+CJS:
29
30
+```js
31
+const dateFormat = require("dateformat");
32
33
34
+As taken from Steven's post, modified to match the Modifications listed above:
35
36
37
const now = new Date();
38
39
// Basic usage
0 commit comments