Skip to content

Commit

Permalink
bump
Browse files Browse the repository at this point in the history
  • Loading branch information
hazae41 committed Feb 23, 2023
1 parent 77c21cd commit 68fc6fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,13 @@ npm i @hazae41/asn1
## Usage

```typescript
import { DER } from "@hazae41/asn1"

const input = new Uint8Array([0x01, 0x01, 0xFF])

const triplet = DER.fromBytes(input) // Boolean

console.log(triplet.toString()) // "BOOLEAN true"

const output = DER.toBytes(triplet) // Uint8Array
const output = DER.toBytes(triplet) // Uint8Array([0x01, 0x01, 0xFF])
```
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "module",
"name": "@hazae41/asn1",
"version": "1.1.3",
"version": "1.1.4",
"description": "Zero-copy ASN.1 <=> DER encoding for the web",
"homepage": "https://github.com/hazae41/asn1",
"repository": "github:hazae41/asn1",
Expand Down

0 comments on commit 68fc6fc

Please sign in to comment.