promise-mmmagic
Add Promise
support for mmmagic.
Installation
npm install promise-mmmagic
or
yarn add promise-mmmagic
Example
const fs = const Magic = const magicFile = 'node_modules/mmmagic/src/binding.cc' const magic = MagicMAGIC_MIME_TYPE// file pathmagic // bufferconst buffer = fsmagic
Credits
Support
Having trouble? Open an issue!
License
The MIT License (MIT). Please see License File for more information.