system/scripts/slugify.ts

11 lines
247 B
TypeScript
Raw Normal View History

2022-08-30 03:38:55 +03:00
#!/usr/bin/env nix-shell
/*
#!nix-shell -i "deno run" -p deno
*/
2022-06-23 23:35:49 +03:00
import { slugify } from "https://deno.land/x/slugify/mod.ts";
2022-04-14 16:55:53 +03:00
for (const sourceFileName of Deno.args) {
2022-06-23 23:35:49 +03:00
console.log(slugify(sourceFileName).replace(/_+/g, "-").toLowerCase());
2022-04-14 16:55:53 +03:00
}