hakanols / tweetnacl-es6

Port of TweetNaCl cryptographic library to JavaScript
https://tweetnacl.js.org
The Unlicense
3 stars 2 forks source link

Optimise for Tree Shaking #3

Open 1000i100 opened 3 years ago

1000i100 commented 3 years ago

export each public func instead of one global to help tree shaker to do there job.

hakanols commented 2 years ago

Would be excellent. My decision to not do that was base on not changing the API from the original tweetnacl-js (https://github.com/dchest/tweetnacl-js) for compatibility. Perhaps it is time to change that decision.

qgustavor commented 2 months ago

Can you check this? https://github.com/qgustavor/tweetnacl-js

Or this? https://www.npmjs.com/package/tweetnacl-ts

hakanols commented 1 month ago

Can you check this? https://github.com/qgustavor/tweetnacl-js

Or this? https://www.npmjs.com/package/tweetnacl-ts

Looks nice but what should I check for? Is it inspiration to editing my fork?

qgustavor commented 1 month ago

It can be, if those doesn't fit your needs.