Skip to content

Commit 4671fdf

Browse files
Add instructions for web
1 parent cafe0c1 commit 4671fdf

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎README.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,18 @@ Read full and updated documentation: https://pythoncoderas.github.io/bbcode-ast/
66

77
## Installation
88

9+
### Node.js
10+
911
```bash
1012
npm install --save bbcode-ast
1113
```
1214

15+
### Browser
16+
17+
Load the library from https://cdn.jsdelivr.net/npm/bbcode-ast@1/dist/bundle.min.js.
18+
19+
This will add a `bbcode_ast` variable to the `window` global. The default parser can be accessed through `bbcode_ast.default`.
20+
1321
## Usage
1422

1523
You can either use the default parser or construct your own parser. Once you have a `Parser`, call the `parse` method on

0 commit comments

Comments
 (0)