Skip to content

Commit

Permalink
Updated examples note
Browse files Browse the repository at this point in the history
  • Loading branch information
james-pre committed May 22, 2024
1 parent 13d46dd commit bf6c625
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ For more information, see the [API documentation](https://zen-fs.github.io/dom).

## Usage

> [!NOTE]
> The examples are written in ESM. If you are using CJS, you can `require` the package. If running in a browser you can add a script tag to your HTML pointing to the `browser.min.js` and use ZenFS DOM via the global `ZenFS_DOM` object.
> [!NOTE]
> The examples are written in ESM.
> For CJS, you can `require` the package.
> For a browser environment without support for `type=module` in `script` tags, you can add a `script` tag to your HTML pointing to the `browser.min.js` and use the global `ZenFS_DOM` object.
```js
import { configure, fs } from '@zenfs/core';
Expand Down

0 comments on commit bf6c625

Please sign in to comment.