Some crude but functional example code on leveraging OpenPGP.js to work with EC cryptography.
npm install to fetch the dependencies.
From there you can simply type
npm start to start an http-server to access the main page.
This code is meant as an illustration to this blog post about Elliptic Curve Cryptography (available on June 11, 2019).