file-data
v2.0.1
Published
File data in one object
Downloads
10
Readme
file-data
Install
npm install file-data
Usage
const FileData = require('file-data');
//f has info about the file
let f = new FileData('./files/index.html');
The structure
FileData {
basename,
dir,
ext,
filename,
mimetype,
name,
stats,
type,
format()
}About
Use new FileData('filename') to get an object with a bunch of info about a file.
