fslint
v1.1.0
Published
Lint for checking file size.
Downloads
905
Readme
fslint
Lint for checking size of file.
Description
If you want to check file size, use this package.
Demo
Requirement
- npm
- node.js
Usage
You can specify file patter and limit of file size.
For example, if you want to check whether assets/js/**/*.js
exceeds the 1024Byte,
enter this.
$ fslint --files=assets/js/**/*.js --limit=1024
Then the result displayed on display.
[OK] assets/js/hoge/fuga.js 500 B
[NG] assets/js/moge.js 2020 MB
...etc
Options
Usage: fslint [options]
Options:
--help output usage information
--files <target> target files for lint
-l, --limit <Byte> limit size
Install
$ npm i -S fslint
Contribution
Bug reports and pull requests are welcome on GitHub at https://github.com/sota1235/fslint. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
Licence
This software is released under the MIT License, see LICENSE.txt.