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.
        
         */
    })

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    0
  • 1.0.1
    1
  • 1.0.0
    0

Package Sidebar

Install

npm i file-type-validator

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

1.68 kB

Total Files

3

Last publish

Collaborators

  • pankaj6892