repositories / pi-ext

pi-ext

bugabingas pi extensions

owned by bugabinga

nerdfont-icons: fix ESM script imports

530b53e852e16b5f0d48d969bf2b31fc2f0321ea

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (1)

+6 / −3 text lines

Diff layout

skills/nerdfont-icons/scripts/get-nerdfont-codepoint.js

Modified

+6 / −3 text lines

11#!/usr/bin/env node
3const fs = require("node:fs");
4const path = require("node:path");
5const zlib = require("node:zlib");
3import fs from "node:fs";
4import path from "node:path";
5import zlib from "node:zlib";
6import { fileURLToPath } from "node:url";
7
8const __dirname = path.dirname(fileURLToPath(import.meta.url));
710const URL = "https://www.nerdfonts.com/cheat-sheet?q=nf";
811const ROOT = path.resolve(__dirname, "..");