frontend-compiler-example/node_modules/slug/cli.js
2025-04-11 16:02:16 -04:00

10 lines
176 B
JavaScript
Executable file

#!/usr/bin/env node
import slug from './slug.js'
if (process.argv.length < 3) {
console.log('Usage: slug <string>')
process.exit(1)
}
console.log(slug(process.argv[2]))