We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a2b892 commit 55d16eeCopy full SHA for 55d16ee
README.md
@@ -29,7 +29,7 @@ It may be a good fit for yours, too!
29
30
See [docs.rs](https://docs.rs/adblock) for detailed API documentation.
31
32
-Also check the [Rust example](./examples/example.rs) or the [NodeJS example](./js/example.js).
+Also check the [Rust example](./examples/example.rs) or the [NodeJS example](./js/example.mjs).
33
34
### Optional features
35
js/example.js renamed to js/example.mjs
@@ -1,5 +1,5 @@
1
-const adblockRust = require('adblock-rs');
2
-const fs = require('fs');
+import adblockRust from 'adblock-rs';
+import fs from 'node:fs';
3
const dataPath = '../data/'
4
5
const debugInfo = true;
0 commit comments