system/scripts/slugify.ts

6 lines
181 B
TypeScript
Raw Normal View History

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
}