@feizheng/next-filesize
v1.0.1
Published
Get filesize based on filesize.js.
Downloads
2
Readme
next-filesize
Get filesize based on filesize.js.
installation
npm install -S @feizheng/next-filesize
usage
import '@feizheng/next-filesize';
nx.filesize(filename) //421 B
nx.filesize(filename, { bits: true }) // 3.29 Kb
resources
- https://github.com/avoidwork/filesize.js
- https://stackoverflow.com/questions/42363140/how-to-find-the-size-of-the-file-in-node-js