diff options
Diffstat (limited to 'node_modules/mmmagic/lib/index.js')
-rw-r--r-- | node_modules/mmmagic/lib/index.js | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/node_modules/mmmagic/lib/index.js b/node_modules/mmmagic/lib/index.js new file mode 100644 index 0000000..bd18a4b --- /dev/null +++ b/node_modules/mmmagic/lib/index.js @@ -0,0 +1,28 @@ +var Magic = require('../build/Release/magic'); +var fbpath = require('path').join(__dirname, '..', 'magic', 'magic'); +Magic.setFallback(fbpath); + +module.exports = { + Magic: Magic.Magic, + MAGIC_NONE: 0x000000, /* No flags (default for Windows) */ + MAGIC_DEBUG: 0x000001, /* Turn on debugging */ + MAGIC_SYMLINK: 0x000002, /* Follow symlinks (default for *nix) */ + MAGIC_DEVICES: 0x000008, /* Look at the contents of devices */ + MAGIC_MIME_TYPE: 0x000010, /* Return the MIME type */ + MAGIC_CONTINUE: 0x000020, /* Return all matches */ + MAGIC_CHECK: 0x000040, /* Print warnings to stderr */ + MAGIC_PRESERVE_ATIME: 0x000080, /* Restore access time on exit */ + MAGIC_RAW: 0x000100, /* Don't translate unprintable chars */ + MAGIC_MIME_ENCODING: 0x000400, /* Return the MIME encoding */ + MAGIC_MIME: (0x000010|0x000400), /*(MAGIC_MIME_TYPE|MAGIC_MIME_ENCODING)*/ + MAGIC_APPLE: 0x000800, /* Return the Apple creator and type */ + + MAGIC_NO_CHECK_TAR: 0x002000, /* Don't check for tar files */ + MAGIC_NO_CHECK_SOFT: 0x004000, /* Don't check magic entries */ + MAGIC_NO_CHECK_APPTYPE: 0x008000, /* Don't check application type */ + MAGIC_NO_CHECK_ELF: 0x010000, /* Don't check for elf details */ + MAGIC_NO_CHECK_TEXT: 0x020000, /* Don't check for text files */ + MAGIC_NO_CHECK_CDF: 0x040000, /* Don't check for cdf files */ + MAGIC_NO_CHECK_TOKENS: 0x100000, /* Don't check tokens */ + MAGIC_NO_CHECK_ENCODING: 0x200000 /* Don't check text encodings */ +}; |