From ae667541ce1fcc3937b7a4045909be1a4c3ec60e Mon Sep 17 00:00:00 2001 From: thekiba Date: Sun, 11 Feb 2024 20:15:45 +0400 Subject: [PATCH] chore: rename package name and update readme --- README.md | 14 +++++++++++++- package.json | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bd2cf94..07ba8ae 100644 --- a/README.md +++ b/README.md @@ -3,11 +3,23 @@ ## Installation ```bash -npm install tlb-parser +npm install @toncommunity/tlb-parser ``` ## Usage +```typescript +import { parse } from "@toncommunity/tlb-parser" + +const scheme = ` +t$_ x:# y:(uint 5) = A; +` + +const ast = parse(scheme) + +console.log(ast) +``` + ## Related - IntelliJ plugin: https://github.com/ton-blockchain/intellij-ton diff --git a/package.json b/package.json index 395bceb..cbf893a 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "tlb-parser", + "name": "@toncommunity/tlb-parser", "version": "0.1.0", "description": "Parse TLB syntax into TypeScript objects", "main": "index.js",