Socket
Book a DemoInstallSign in
Socket

file-count-cli

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

file-count-cli

Count and print files by extention

Source
npmnpm
Version
0.0.0
Version published
Weekly downloads
3
-62.5%
Maintainers
1
Weekly downloads
 
Created
Source

Simple count

Count all files in the given directory and its subdirectories.

npx filecount -d fixtures

5 files found.

Print files

node index.js -d fixtures -p

5 files found.
fixtures/apple.js
fixtures/berries/blueberry.ts
fixtures/berries/raspberry.html
fixtures/berries/strawberry.js
fixtures/orange.js

Include only files matching a pattern

npx filecount -d ./fixtures -i "berries.*\.js|ts" -p

2 files found.
fixtures/berries/blueberry.ts
fixtures/berries/strawberry.js

Keywords

file-count

FAQs

Package last updated on 26 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts