simple-file-size
a super simple cli for file-size limit
Usage
$ npm install --save-dev simple-file-size
Super simple, Just two steps
- add filesize in package.json
- maxSize must be a string like '1kb', '1mb', '10244'
- path, as you know, like './index.ts', path.resolve(__dirname, './a.js')
- level is optional, default is 9
- add script in package.json
or download the simple-file-size in devDepencies, and then:
"scripts":
- demos
Commands
It works well now, maybe we need more in future, not now