near / borsh-js

TypeScript/JavaScript implementation of Binary Object Representation Serializer for Hashing
Apache License 2.0
112 stars 38 forks source link

Can I use borsh-js directly from HTML script tag instead of node? #51

Closed digitalnetbizz closed 10 months ago

digitalnetbizz commented 2 years ago

I would like some sort of confirmation that borsh-js (https://github.com/near/borsh-js) can only be used in node? I would like to use it directly in HTML Javascript using script tag. So far, I've not seen anyone using it that way. I tried to make a copy of the index.js (within the git above) and reference directly from script within my HTML. It throws error.

gagdiez commented 10 months ago

the new version should work perfectly in a web