filea
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Filea Travis CI Build Status

Get the mime type of a file.

NPM Badge

Install

npm install filea

Usage

const filea = require("filea");
 
(async () => {
    await filea("image.png")
    //=> image/png
})()

API

filea(filename)

filea.sync(filename)

filename

Type: string

The file to get the mime type for.

Package Sidebar

Install

npm i filea

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

3.72 kB

Total Files

6

Last publish

Collaborators

  • richienb