0.0.5 ā€¢ Published 28 days ago

@transmute/edn v0.0.5

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
28 days ago

@transmute/edn

CI Branches Functions Lines Statements Jest coverage

šŸš§ Experimental šŸ”„

This package generates HTML in a naive manner that could lead to XSS.

Questions? Contact Transmute

Usage

npm i @transmute/edn --save
import * as edn from "@transmute/edn";
const document: edn.EDNCoseSign1 = await edn.parse(
  Buffer.from("D28444A1013822A1044...02E9D91E9B7B59622A3C", "hex")
  // or "18([h'A1013822', {4: h'5 ...
)
const message = Buffer.from("D28444A1013822A1044...02E9D91E9B7B59622A3C", "hex");
const text = await edn.render(message, 'application/cbor-diagnostic')
// / cose-sign1 / 18([
// 	/ protected / << {
// 		/ alg / 1 : -35 / ES384 /
// 	} >>>,
// 	/ unprotected / {
// 		/ kid / 4 : h'50333834'
// 	},
// 	/ payload / h'54686973...656e742e',
// 	/ signature / h'5f150abd...59622a3c'
// ])

Develop

npm i
npm t
npm run lint
npm run build
0.0.5

28 days ago

0.0.3

2 months ago

0.0.4

2 months ago

0.0.2

2 months ago

0.0.1

4 months ago