insane-jo / talib-wasm

MIT License
26 stars 6 forks source link

working example of html page for this wasm #10

Closed rahulamalkar closed 3 years ago

rahulamalkar commented 3 years ago

Hi @insane-jo , i seek your help in creating a working html page were we can use this wasm lib.

insane-jo commented 3 years ago

Hi @rahulamalkar . You need to use webpack to build your javascript app. Do you use webpack?

rahulamalkar commented 3 years ago

Nope @insane-jo , i am new to it.

insane-jo commented 3 years ago

@rahulamalkar , this package does not contain standalone version. But you can do like that:

  1. Add file to your page talib-wasm/build/talib.js like that: <script type="text/javascript" src="file:///Users/myuser/Documents/own-projects/talib-wasm-npm/build/talib.js"/>
  2. Than you can use Module.ready.then(() => { ${your code here} });