@peculiar/asn1-x509-qualified-etsi
v2.3.13
Published
[![License](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://raw.githubusercontent.com/PeculiarVentures/asn1-schema/master/packages/x509-qualified-etsi/LICENSE.md) [![npm version](https://badge.fury.io/js/%40peculiar%2Fasn1-x509-qua
Downloads
1,648
Keywords
Readme
@peculiar/asn1-x509-qualified-etsi
Installation
npm install @peculiar/asn1-x509-qualified-etsi
Usage
import { AsnConvert } from "@peculiar/asn1-schema";
import * as etsi from "@peculiar/asn1-x509-qualified-etsi";
// Serialize
const qcCClegislation = new etsi.QcCClegislation(["UK", "FR"]);
const raw = AsnConvert.serialize(qcCClegislation);
console.log(Buffer.from(raw).toString("hex")); // 30081302554b13024652
// Parse
const qc = AsnConvert.parse(raw, etsi.QcCClegislation);
console.log(qc); // QcCClegislation(2) [ 'UK', 'FR' ]