file-data

File data in one object


Keywords
fs, file, directory
License
MIT
Install
npm install file-data@0.1.1

Documentation

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.