Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,23 @@ $ dateformat --help

## Usage

As taken from Steven's post, modified to match the Modifications listed above:
This module supports both ESM and CJS formats.

ESM:

```js
import dateFormat, { masks } from "dateformat";
```

CJS:

```js
const dateFormat = require("dateformat");
```

As taken from Steven's post, modified to match the Modifications listed above:

```js
const now = new Date();

// Basic usage
Expand Down
Loading