packages/chunkalyse/bin/chunkalyse.js
function start(stats, {f, format = 'human'} = {}) {
	try {
		const result = chunkalyse(stats);
		let output;

		switch (f || format) {
			case 'json':
				output = JSON.stringify(result, null, 2);
				break;
			case 'human':
			default:
				output = require('../lib/humanise')(result);
		}

		console.log(output);
	} catch (error) {
		console.log('I\'ve had trouble finding the chunks\n');
		throw error;
	}
}
function start(stats, {f, format = 'human'} = {}) {
	try {
		const result = chunkalyse(stats);
		let output;

		switch (f || format) {
			case 'json':
				output = JSON.stringify(result, null, 2);
				break;
			case 'human':
			default:
				output = require('../lib/humanise')(result);
		}

		console.log(output);
	} catch (error) {
		console.log('I\'ve had trouble finding the chunks\n');
		throw error;
	}
}
function start ( stats , { f , format = 'human' } = { } ) { try { const result = chunkalyse ( stats ) ; let output ; switch ( f || format ) { case 'json' : output = JSON . stringify ( result , null , 2 ) ; break ; case 'human' : default : output = require ( '../lib/humanise' ) ( result ) ; } console . log ( output ) ; } catch ( error ) { console . log ( 'I\'ve had trouble finding the chunks\n' ) ; throw error ; } }
Get the chunks and print them
@param  {Object} stats
no return value
Get the chunks and print them