Skip to content

Commit 2c30819

Browse files
committed
Update get started
1 parent d787ab1 commit 2c30819

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

docs/get-started.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ Charming is typically installed via a package manager such as Yarn or NPM.
55
::: code-group
66

77
```sh [npm]
8-
npm add -S charmingjs
8+
npm install charmingjs
99
```
1010

1111
```sh [pnpm]
12-
pnpm add -S charmingjs
12+
pnpm add charmingjs
1313
```
1414

1515
```sh [yarn]
16-
yarn add -S charmingjs
16+
yarn add charmingjs
1717
```
1818

1919
```sh [bun]
@@ -34,17 +34,17 @@ In vanilla HTML, Charming can be imported as an ES module, say from jsDelivr:
3434
<script type="module">
3535
import * as cm from "https://cdn.jsdelivr.net/npm/charmingjs/+esm";
3636
37-
const svg = cm.svg("svg");
37+
const svg = cm.svg`<svg></svg>`;
3838
document.body.append(svg);
3939
</script>
4040
```
4141

4242
Charming is also available as a UMD bundle for legacy browsers.
4343

4444
```html
45-
<script src="https://cdn.jsdelivr.net/npm/charmingjs"></script>
45+
<script src="https://cdn.jsdelivr.net/npm/charmingjs/dist/charming.umd.min.js"></script>
4646
<script>
47-
const svg = cm.svg("svg");
47+
const svg = cm.svg`<svg></svg>`;
4848
document.body.append(svg);
4949
</script>
5050
```

0 commit comments

Comments
 (0)