ASN.1 utilities
Extract ASN.1 definition from 3GPP standard specifications.
npm install proj3rd/asn3rd
import { extract } from 'asn3rd';
const options = {
excludeNonTagComment: true,
};
const extracted = await extract(text, options);
text
: A string containing ASN.1 definition.options
: Options for extraction. Optional.excludeNonTagComment
: Whether to exclude non-tag comment. A tag is either a need code or a conditional tag, e.g.-- Need R
or-- Cond HO-toEPC
. Optional. Defaultfalse
.
Parse (and validate) ASN.1 definition in the form of 3GPP standard specifications.
npm install proj3rd/asn3rd
import { parse } from 'asn3rd';
const moduleDefinitionsContext = await parse(text);