Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/timneutkens/directory-size

Get number of files in a directory
https://github.com/timneutkens/directory-size

Last synced: 21 days ago
JSON representation

Get number of files in a directory

Awesome Lists containing this project

README

        

# Directory Size

Get the number of items inside a directory.

Tested using:

` node -v v5.5.0 `

##Usage
`npm install --save directory-size`

###Example
```javascript
const directorySize = require('directory-size');
directorySize('/tmp').then(function(count) {
console.log(count);
});
```

##License
MIT