#bytesize
##Installation
npm install bytesize
##Usage
const bytesize = require('bytesize');
const size = bytesize.stringSize('1 12 3 123 123');
const size = bytesize.stringSize('1 12 3 123 123', true);
try {
const size = await bytesize.fileSize(__dirname + '/fixtures/test.txt');
} catch(exc) {
console.log(exc);
}
try {
const size = await bytesize.fileSize(__dirname + '/fixtures/test.txt', true);
} catch(exc) {
console.log(exc);
}
try{
const size = await bytesize.gzipSize(__dirname + '/fixtures/test.txt');
} catch(exc) {
console.log(exc);
}
const size = await bytesize.gzipSize(__dirname + '/fixtures/test.txt', true);