2.0.1 • Published 6 years ago

file-data v2.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

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.

2.0.1

6 years ago

2.0.0

6 years ago

1.0.0

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago