Comparing version 0.1.1 to 0.1.2
@@ -12,2 +12,6 @@ var fs = require('fs') | ||
function kb(bytes) { | ||
return (bytes / 1024).toFixed(2) + 'KB' | ||
} | ||
/** | ||
@@ -96,5 +100,7 @@ * Reads a template string from the given path and formats it with any | ||
console.log(' original size: %s (%s gzipped)', | ||
result.statistics.originalSize, result.statistics.originalGzipSize) | ||
kb(result.statistics.originalSize), | ||
kb(result.statistics.originalGzipSize)) | ||
console.log(' compressed size: %s (%s gzipped)', | ||
result.statistics.compressedSize, result.statistics.compressedGzipSize) | ||
kb(result.statistics.compressedSize), | ||
kb(result.statistics.compressedGzipSize)) | ||
console.log('compressed: %s', compressedOutputPath) | ||
@@ -101,0 +107,0 @@ fs.writeFileSync(compressedOutputPath, config.header + result.compiledCode) |
{ | ||
"name": "buildumb" | ||
, "description": "Ultra-dumb exporter of Node.js modules for use in the browser" | ||
, "version": "0.1.1" | ||
, "version": "0.1.2" | ||
, "author": "Jonathan Buchanan <jonathan.buchanan@gmail.com> (https://github.com/insin)" | ||
@@ -6,0 +6,0 @@ , "tags": ["build", "export", "browser", "modules"] |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
7701
128
65