liblouis / liblouis-js

Port/cross-compiled version of liblouis to Javascript
GNU General Public License v3.0
11 stars 4 forks source link

main file "liblouis.js" in "package.json" does not exist #8

Closed reiner-dolp closed 7 years ago

reiner-dolp commented 7 years ago

However, what should be the default?

frastlin commented 7 years ago

I think that the easy_wrapper module should be the main module with a function like liblouis-js.ccall("lou_version", "string") to access the c api. The without tables should be the only module. The table search should look in the app dir first, then look in the libouis-js module second. The tables included should be either an extra download or created with a function like liblouis-js.create_single_file(tables=[], name="liblouis-js_with_tables.js") then have a single file with the included tables created in the current dir. I think the included tables file is only good for browser usage and not node usage. Thanks,

reiner-dolp commented 7 years ago

I would be happy to review a pull request that adds node-js support. However, support of browser environments has priority and should work without a build step.

reiner-dolp commented 7 years ago

Resolved by commit 75cd8a2.