filesizr

1.0.5 • Public • Published

Filesizr

Filesizr is a file size validator.

pipeline status

Installation

By using yarn (the recommended way):

yarn add -D filesizr

Or by using npm:

npm install --save-dev filesizr

Configuration

Add your configuration to your package.json file. Example:

  "filesizr": [
    {
      "path": "index.js",
      "maxSize": "100 B",
      "compressed": false
    },
    {
      "path": "src/*.js",
      "maxSize": "3 kB"
    },
    {
      "path": "index.js",
      "maxSize": "100 B",
      "compressed": true
    }
  ]

Usage

Add filesizr in your scripts

"scripts": {
  "test": "filesizr"
}

CLI

$ filesizr -f ./dist/inde*.js -s 100b

Informations

Similar projects

License

MIT

Package Sidebar

Install

npm i filesizr

Weekly Downloads

2

Version

1.0.5

License

MIT

Last publish

Collaborators

  • yroot
  • yanbreu