UNPKG

comment-strip-cli

Version:

A powerful CLI tool to strip comments from source code files while preserving strings and important metadata

16 lines (13 loc) 323 B
#!/usr/bin/env node const { main } = require('../src/index.js'); // Run the CLI with command line arguments main(process.argv.slice(2)) .then((result) => { if (result.success === false) { process.exit(1); } }) .catch((error) => { console.error('Error:', error.message); process.exit(1); });