UNPKG

unbundle

Version:

`require()` and `import`/`export` in the browser, without the bundling

15 lines (10 loc) 262 B
#! /usr/bin/env node import {parse} from './argv' import debug from 'debug' import unbundle from '..' const argv = parse(process.argv.slice(2)) if (!argv.silent) { debug.enable('unbundle') } unbundle(argv.entry, argv.destination) .catch(::console.error)