mirror of
https://github.com/EvernodeXRPL/hpcore.git
synced 2026-04-29 15:37:59 +00:00
* Added blake3 import and safari compatibility fix. * Created browser lib with bson support. * Added 'terser' for minification. * Added TextEncoder compatiblity fix.
Hot Pocket javascript client library and examples
Single-file javascript library to support json and bson protocols in NodeJs and Browser environments.
NodeJs
- Run
npm installto install all the dependencies. lib/hp-client-lib.jsis the Hot Pocket client library for NodeJs.text-client.jsis the example for json mode.file-client.jsis the example for bson mode.
Browser
- Run
npm installto install all the compilation dependencies. - Run
npm run build-browserto produced the minified library for the browser. browser-example.htmlis the simple html/javascript example for json mode.
(For BSON support in browser, a slightly modified version of https://www.npmjs.com/package/bson is used. The minified library includes this bson support library as well)