New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

count-files

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

count-files - npm Package Compare versions

Comparing version 2.0.1 to 2.1.0

2

index.js

@@ -43,2 +43,4 @@ var fs = require('fs')

})
return totalStats
}

2

package.json
{
"name": "count-files",
"version": "2.0.1",
"version": "2.1.0",
"description": "count files in a directory recursively",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -12,11 +12,9 @@ # Count Files

countFiles(dir, function (err, stats) {
// use stats
var stats = countFiles(dir, function (err, stats) {
console.log('done counting')
})
stats = {
files: 100,
dirs: 20,
bytes: 234213
}
setInterval(function () {
console.log('current count', count)
}, 500)
```

@@ -26,3 +24,3 @@

### countFiles(dir, [opts], cb) { }
### var stats = countFiles(dir, [opts], cb) { }

@@ -29,0 +27,0 @@ Callback returns a stats object: `{files, dirs, bytes}`.

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