smatchit_tailwind_project/node_modules/yaml/bin.mjs

12 lines
310 B
JavaScript
Raw Permalink Normal View History

2024-07-15 12:57:41 +00:00
#!/usr/bin/env node
import { UserError, cli, help } from './dist/cli.mjs'
cli(process.stdin, error => {
if (error instanceof UserError) {
if (error.code === UserError.ARGS) console.error(`${help}\n`)
console.error(error.message)
process.exitCode = error.code
} else if (error) throw error
})