tiagosiebler / binance

Node.js & JavaScript SDK for Binance REST APIs & WebSockets, with TypeScript & browser support, integration tests, beautification & more.
MIT License
747 stars 266 forks source link

Support imports into frontend projects #308

Open tiagosiebler opened 1 year ago

tiagosiebler commented 1 year ago

This is something to modernise, supporting seamless imports to frontend projects without needing to build a js bundle with the webpack config in the repo.

Right now the only semi-documented method for using this module in the browser is to generate a js bundle using webpack, and then including that with a script tag (#144). It should be as simple as npm install then import from 'binance'. The same way backend projects use this module.

If anyone wants to look into what needs to happen to support this, please do! PRs welcome.