@ddbeck/mdn-content-inventory 0.1.0-20231001.f15b8d5828

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.js +13 -0
  2. package/index.json +1 -0
  3. package/package.json +10 -0
package/index.js ADDED
@@ -0,0 +1,13 @@
1
+ import { readFileSync } from "fs";
2
+ import { dirname, join } from "path";
3
+ import { fileURLToPath } from "url";
4
+
5
+ const scriptdir = dirname(fileURLToPath(import.meta.url));
6
+
7
+ function read() {
8
+ return JSON.parse(
9
+ readFileSync(join(scriptdir, "index.json"), { encoding: "utf-8" }),
10
+ );
11
+ }
12
+
13
+ export default read();