@georgenet/dirls

1.0.1 • Public • Published

dirls - Get directory contents and metadata

Build 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
	}
]

Readme

Keywords

Package Sidebar

Install

npm i @georgenet/dirls

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

184 kB

Total Files

16

Last publish

Collaborators

  • georgenet