Skip to content
Get directory contents and metadata
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vuepress
docs
testdir
.gitignore
.travis.yml
LICENSE
README.md
index.js
package-lock.json
package.json
test.js

README.md

dirls - Get directory contents and metadata

Build Status FOSSA Status

Install

npm i @georgenet/dirls

Usage

const dirls = require('@georgenet/dirls')
console.log(dirls('path'))

Out:

[
	{
		name: "file.txt" // File name
		type: "file" // Can be 'device', 'directory', 'FIFOpipe', 'file', 'socket', 'symlink' or 'unknown'
		stats: {} // fs.Stats object
	}
]

License

FOSSA Status

You can’t perform that action at this time.