Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/timneutkens/directory-size
- Owner: timneutkens
- Created: 2016-02-10T09:06:34.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-10T09:10:12.000Z (almost 9 years ago)
- Last Synced: 2024-12-08T09:15:41.052Z (about 1 month ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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