Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fcount

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fcount

Recursively count file types.

  • 0.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

fcount

Recursively count the number files in the current directory given file extensions to match on.

Usage

All extensions you want counted should be entered in a space seperated list.

$ fcount [extensions...]

Example

$ fcount js json java

The above will return something similiar to this in the shell

┌───────────┬───────┐
│ File type │ Count │
├───────────┼───────┤
│ js        │ 349   │
├───────────┼───────┤
│ json      │ 57    │
├───────────┼───────┤
│ java      │ 1     │
└───────────┴───────┘

Note: Any files in hidden directories such as .git will not be counted.

TODO

  • Add in the ability to exclude certain folders from the directory traversal. For example, all files inside of node_modules should not be counted. I'm thinking to use the -e flag followed by a space seperated list of directory names.
$ fcount js json -e node_modules
  • Document methods in count.js.

Keywords

FAQs

Package last updated on 27 Dec 2014

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc