Skip to content

Commit 55d16ee

Browse files
committed
migrate JS example to ESM
1 parent 1a2b892 commit 55d16ee

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ It may be a good fit for yours, too!
2929

3030
See [docs.rs](https://docs.rs/adblock) for detailed API documentation.
3131

32-
Also check the [Rust example](./examples/example.rs) or the [NodeJS example](./js/example.js).
32+
Also check the [Rust example](./examples/example.rs) or the [NodeJS example](./js/example.mjs).
3333

3434
### Optional features
3535

js/example.js renamed to js/example.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
const adblockRust = require('adblock-rs');
2-
const fs = require('fs');
1+
import adblockRust from 'adblock-rs';
2+
import fs from 'node:fs';
33
const dataPath = '../data/'
44

55
const debugInfo = true;

0 commit comments

Comments
 (0)