mmmagic
mmmagic copied to clipboard
An async libmagic binding for node.js for detecting content types by data inspection
fixed https://github.com/mscdex/mmmagic/issues/169
Hello, I am trying to upgrade a project that uses mmmagic to node 20. The following compile issues occur: ``` ➜ yarn yarn install v1.22.19 [1/4] Resolving packages... [2/4] Fetching...
Trying to get mmmagic to work. On M1 Mac. `npm install mmmagic` shows: Debug log file below ``` 72 error code 1 73 error path /Users/dannymiller/node_modules/mmmagic 74 error command failed...
Since the node update from v18 to v19 mmmagic didn't compile anymore because missing C++ extensions. This merge request fixes that by changing the compiler and target platform. Warning that...
I get the following error when using esbuild to compile a node project: ``` Error: The module '/home/ian/my-electron-app/node_modules/mmmagic/build/Release/magic.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 93. This version...
When trying to use `mmagic` within worker threads im receivenig below error: ``` Module did not self-register: '****\node_modules\mmmagic\build\Release\magic.node'. node:internal/modules/cjs/loader:1183 return process.dlopen(module, path.toNamespacedPath(filename)); ^ Error: Module did not self-register: '****\node_modules\mmmagic\build\Release\magic.node'. at...
The library does not seem to work inside a worker thread. When running the code below the result is not logged: ``` const { Worker, isMainThread } = require("worker_threads"); if...
The line: https://github.com/mscdex/mmmagic/blob/master/lib/index.js#L2 produces: ``` ReferenceError: __dirname is not defined ``` [There is a discussion for webpack](https://github.com/webpack/webpack/issues/14072), but it would be great, if esm could be supported by this great...
With nodejs10.x in lambda AWS const Magic = require('mmmagic') { "errorType": "Error", "errorMessage": "libnode.so.64: cannot open shared object file: No such file or directory", "trace": [ "Error: libnode.so.64: cannot open...