UNPKG

js-simple-mangler

Version:

A simple JavaScript mangler that works across multiple files.

14 lines (13 loc) 560 B
#!/usr/bin/env node /* IMPORT */ import { bin } from 'specialist'; import Mangler from './/index.js'; /* MAIN */ bin('manger', 'A simple JavaScript mangler that works across multiple files') /* DEFAULT COMMAND */ .option('--ext <extension>', 'The extension of the files to consider') .option('--folder <folder>', 'The target folder where to seearch for files to mangle', { required: true }) .option('--props <props>', 'The comma-separated list of properties to mangle', { required: true }) .action(Mangler.mangle) /* RUN */ .run();