RomPatcher.js icon indicating copy to clipboard operation
RomPatcher.js copied to clipboard

Option to consume this library as a CommonJS module for use in Node.js

Open kethinov opened this issue 6 years ago • 6 comments

I'm working on a Node.js command line app that needs to have IPS patching functionality. This repo has a lot of great functionality, but from what I can tell, it assumes consumption in the browser with a GUI. Would be nice to be able to do stuff like this:

// Node.js script
let romPatcher = require('RomPatcher')
romPatcher.patch(inputRomPath, inputIpsPath, outputRomPath)
// the above writes to outputRomPath using Node.js fs module

kethinov avatar Jun 12 '19 18:06 kethinov

Sounds pretty good. Unfortunately, I haven't worked with Node.js.

I'll leave the issue open just in case someone feels free to implement this :-)

marcrobledo avatar Jun 25 '19 09:06 marcrobledo

I haven't created a node module from a vanilla javascript project in a while, but I can take a look at this if help is still needed.

joshterrill avatar Sep 12 '21 22:09 joshterrill

That'd be awesome. Nobody has worked on it yet.

kethinov avatar Sep 12 '21 22:09 kethinov

Okay, I'll take a look at it this week.

joshterrill avatar Sep 12 '21 22:09 joshterrill

#61 should work for this

unsupo avatar Jun 30 '23 18:06 unsupo

Thanks!

kethinov avatar Jul 01 '23 14:07 kethinov