Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is mp4 really an image/mp4 mime type not something like audio/mp4 or video/mp4? #345

Closed
avillarubia opened this issue Apr 6, 2020 · 3 comments

Comments

@avillarubia
Copy link

avillarubia commented Apr 6, 2020

Good day,

I saw from your readme file as seen in your npm documentation says

const fs = require('fs');
const FileType = require('file-type');
 
(async () => {
    const stream = fs.createReadStream('Unicorn.mp4');
 
    console.log(await FileType.fromStream(stream));
    //=> {ext: 'mp4', mime: 'image/mp4'}
}
)();

is the output really an image for mp4? not something like audio/mp4 orr video/mp4?

Stay Home and Keep Safe everyone.

@avillarubia avillarubia changed the title image/mp4? Is mp4 really an image/mp4 mime type not something like audio/mp4? Apr 6, 2020
@avillarubia
Copy link
Author

@sindresorhus hi there, why close? We haven't got any answers yet.

@avillarubia avillarubia changed the title Is mp4 really an image/mp4 mime type not something like audio/mp4? Is mp4 really an image/mp4 mime type not something like audio/mp4 or video/mp4? Apr 6, 2020
@sindresorhus
Copy link
Owner

Please look at the close reason. It was fixed in the readme.

@avillarubia
Copy link
Author

@sindresorhus oh thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants