system/scripts/slugify.ts

6 lines
181 B
TypeScript

import { slugify } from 'https://deno.land/x/slugify/mod.ts';
for (const sourceFileName of Deno.args) {
console.log(slugify(sourceFileName).replace(/_+/g, '-').toLowerCase());
}