1.0.0 • Published 4 years ago

jwk-schema v1.0.0

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

JSON Web Key JSON Schema and TypeScript Types

JSON Schema (both as a JavaScript Object and as JSON) and TypeScript interfaces for representing JSON Web Keys, as described here.

Recreate

I am not going to implement scripts or automation for this, because it will probably not going to change very often.

  1. Compile index.ts to index.js: tsc ./source/index.ts.
  2. Convert index.js to index.json: node -e 'console.log(JSON.stringify(require(\"./source/index.js\").default));' > .\source\index.json.
  3. Convert index.json to index.d.ts: node ./tools/compileInterfaces.js.
  4. Just manually dereference JSONWebKey in index.json to create index.deref.json.