file-data

2.0.1 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i file-data

Weekly Downloads

2

Version

2.0.1

License

MIT

Unpacked Size

3.76 kB

Total Files

4

Last publish

Collaborators

  • hollowdoor