Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
chore: update README
Browse files Browse the repository at this point in the history
  • Loading branch information
hanspagel committed Dec 11, 2023
1 parent a51caf8 commit a7fe57a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@ A modern way to generate code examples for different languages.
## Installation

```
npm install @scalar/snippetz
npm install @scalar/snippetz @scalar/snippetz-plugin-undici
```

## Usage

```js
import { snippetz, undici } from '@scalar/snippetz'
import { snippetz } from '@scalar/snippetz'
import { undici } from '@scalar/snippetz-plugin-undici'

const snippet = snippetz().get(
undici({
Expand All @@ -41,7 +42,7 @@ const snippet = snippetz().get(
### Generate an abstract tree (AST)

```js
import { undici } from '@scalar/snippetz'
import { undici } from '@scalar/snippetz-plugin-undici'

const source = undici({
url: 'https://example.com'
Expand Down

0 comments on commit a7fe57a

Please sign in to comment.