glennsl / bs-diffie-hellman

Bindings of https://www.npmjs.com/package/diffie-hellman for ReasonML

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bs-diffiehellman

Binding of diffie-hellman for ReasonML.

installation

Install the npm package

$ npm i bs-diffie-hellman

Add it to the dependencies in your bsconfig.json

"bs-dependencies": ["bs-diffie-hellman"]

Don't forget to build your app

$ bsb -make-world

Design decisions

  1. string enums -> polymorphic variants
  2. labeled arguments in constructors

Example

In the example folder you can find an example in ReasonML, which practically directly translates to typescript / javascript ๐Ÿ‘Œ (example from node docs)

Contribution

Any contribution is welcome. Especially because I'm still learning Reason and I might have missed some good practises ๐Ÿ˜… Thank you in advance ๐Ÿ˜‰

About

Bindings of https://www.npmjs.com/package/diffie-hellman for ReasonML


Languages

Language:OCaml 93.3%Language:TypeScript 6.7%