system/scripts/slugify.ts

7 lines
181 B
TypeScript
Raw Normal View History

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