0

I am trying to make a CHM reader in JavaScript. I am trying to find way to extract data out of the LZX compression format that will work in most browsers. I also don't want to use a server-side API, because this program is supposed to work offline. Does anybody know a way to do this?

Heretic Monkey
  • 11,687
  • 7
  • 53
  • 122
TheMirrazz
  • 11
  • 3
  • The only thing I could find was what a CHM file was or how to open it in PHP, C, and Python. The only thing for javascript was for NodeJS. – TheMirrazz May 05 '22 at 19:14
  • 2
    Note that the LZX compression used in CHM is altered from the original: See [Wikipedia's article on LZX](https://en.wikipedia.org/wiki/LZX). You may be interested in the answer to [Using HTML Help Workshop 1.3 and HTML5 and Javascript DOM and targeting Windows 10 with HTML Help files?](https://stackoverflow.com/q/55174247/215552). Also note that CHM is not really used even by Microsoft any more... – Heretic Monkey May 05 '22 at 19:25
  • Try to compile some existing source code in C or Pascal through an emscripten (or Pas2js in Pascal's case) to convert it to javascript? – Marco van de Voort May 12 '22 at 15:21

0 Answers0