https://github.com/proj3rd/asn3rd
ASN.1 utilities, especially targeted 3GPP
https://github.com/proj3rd/asn3rd
3gpp asn1
Last synced: 5 months ago
JSON representation
ASN.1 utilities, especially targeted 3GPP
- Host: GitHub
- URL: https://github.com/proj3rd/asn3rd
- Owner: proj3rd
- Created: 2022-03-11T08:25:28.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-11-07T13:07:54.000Z (over 3 years ago)
- Last Synced: 2023-03-09T09:06:07.932Z (about 3 years ago)
- Topics: 3gpp, asn1
- Language: ANTLR
- Homepage:
- Size: 1.21 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# asn3rd
ASN.1 utilities
- [Extractor](#extractor)
- [Usage](#usage)
- [Parser / Validator](#parser--validator)
- [Usage](#usage-1)
## Extractor









Extract ASN.1 definition from 3GPP standard specifications.
### Usage
```sh
npm install proj3rd/asn3rd
```
```ts
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. Default `false`.
## Parser / Validator











Parse (and validate) ASN.1 definition in the form of 3GPP standard specifications.
### Usage
```sh
npm install proj3rd/asn3rd
```
```ts
import { parse } from 'asn3rd';
const moduleDefinitionsContext = await parse(text);
```