diff options
Diffstat (limited to 'librejs.mjs')
-rwxr-xr-x | librejs.mjs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/librejs.mjs b/librejs.mjs new file mode 100755 index 0000000..efd3ad7 --- /dev/null +++ b/librejs.mjs @@ -0,0 +1,15 @@ +import * as fs from "node:fs/promises";
+
+fs.readdir(".output/public/_nuxt").then((files) => {
+ fs.open(".output/public/javascript.html", "w").then(async (fp) => {
+ fp.write(`<table id="jslicense-labels1">\n`);
+ for (let file of files) {
+ if (/mjs/.test(file)) {
+ await fp.write(
+ `\t<tr>\n\t\t<td><a href="/_nuxt/${file}">${file}</a></td>\n\t\t<td><a href="http://www.gnu.org/licenses/gpl-3.0.html">GNU-GPL-3.0-or-later</a></td>\n\t\t<td><a href="/_nuxt/${file}">${file}</a></td>\n\t</tr>\n`
+ );
+ }
+ }
+ fp.write(`</table>\n`);
+ });
+});
|