mind-the-bulk

0.0.3 • Public • Published

devDependency Status

mind the bulk

A (very) simple utility to size of files containing JavaSript source code. It will report file size in its raw, minified ad gziped form. useful for tracking deliverables' size.

Usage

var getSizes = require('mind-the-bulk');
var sizes = getSizes(['file1.js', 'file2.js']);

This module exports a simple function that accepts an array of paths to files. The function will return an object where keys are equal to file's basename and values are of the following structure (sizes are in bytes):

{ "raw": 228,
  "min": 200,
  "gzip": 173}

Readme

Keywords

none

Package Sidebar

Install

npm i mind-the-bulk

Weekly Downloads

1

Version

0.0.3

License

none

Last publish

Collaborators

  • ariatemplates