AlexAltea / capstone.js

Capstone disassembler framework for JavaScript
https://alexaltea.github.io/capstone.js/
BSD 3-Clause "New" or "Revised" License
172 stars 28 forks source link

Library not in npm registry #18

Closed CypElf closed 2 years ago

CypElf commented 2 years ago

It would be nice to have this library available through npm. The dependency to this library would be easier to manage with front end frameworks already using npm, but more importantly, it could be used in node.js where it's currently very complicated to integrate this library.

AlexAltea commented 2 years ago

The only purpose of Capstone.js is to have Capstone run in browsers, not in Node.js environments.

I have intentionally avoided publishing this package to NPM because https://www.npmjs.com/package/capstone already exists, and is a much better way to run Capstone in Node.js environments.

CypElf commented 2 years ago

It hasn't received updates since 5 years now, it doesn't seem to be supported anymore unfortunately. The node.js version supported by this other project is very old and has installation issues with node.js' latest LTS, making it basically useless and unusable. So I don't really understand why because this other library exists you don't want to publish yours on npm.

AlexAltea commented 2 years ago

Done at https://www.npmjs.com/package/@alexaltea/capstone-js

CypElf commented 2 years ago

For some reason, node doesn't find the module when imported using a require, even if installed using npm. I've never seen that before, what could be the issue?

AlexAltea commented 2 years ago

No idea, I have not much experience with Node, and no time to debug it at the moment.

Feel free to open another issue to keep track of this!