file-count-custom

1.0.2 • Public • Published

file-count-custom

Get your files size & counts in directory with specific extension.

Install

npm install file-count-custom

Usage

For specific extension.

const fileCountCustom = require('file-count-custom'):
let fileInfo = new fileCountCustom('/root', 'png').count();
console.log(fileInfo.count); // ex: 10
console.log(fileInfo.size);  // ex: 85.55 KiB

For all files.

const fileCountCustom = require('file-count-custom'):
let fileInfo = new fileCountCustom('/root').count();
console.log(fileInfo.count); // ex: 95
console.log(fileInfo.size);  // ex: 101.4 MB

Package Sidebar

Install

npm i file-count-custom

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

2.92 kB

Total Files

4

Last publish

Collaborators

  • _sathikbasha