file-type-validator

1.0.2 • Public • Published

file-type-validator

A package to check if the file extension is same as its mime type or not

how to use

Use promise .then method to access the result

Eg. isFileValid(file) .then((res) => { /*

        Do your action here.
        
         */
    })

/file-type-validator/

    Package Sidebar

    Install

    npm i file-type-validator

    Weekly Downloads

    2

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    1.68 kB

    Total Files

    3

    Last publish

    Collaborators

    • pankaj6892