Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaodong2008 committed Nov 19, 2023
1 parent 338866c commit 85c6e05
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

## Getting Started

- https://fastjs.cc/ (In pre release)
- https://fastjs.cc/
- https://docs.fastjs.cc/ (In maintenance - v2)
- https://zh.docs.fastjs.cc/ (In maintenance - v2)

Expand All @@ -35,14 +35,37 @@ We have many versions, including:
- Global (dist/fastjs.global.js)
- Global Production (dist/fastjs.global.prod.js)

## Install
## Start Using

### Bundler/CommonJS

```bash
npm install fastjs-next
```

```js
import { dom } from 'fastjs-next' // esm
const { request } = require('fastjs-next') // cjs
```

### CDN (Global)

```html
<script src="https://unpkg.com/fastjs-next/dist/fastjs.global.js"></script>
```

### Browser (ES Module)

```html
<script type="module">
import { dom } from 'https://unpkg.com/fastjs-next/dist/fastjs.esm.browser.js'
</script>
```

## Cli

**Warning: Fastjs-cli is in maintenance cause of updating to v2, we don't suggest use it for now.**

```bash
npm install -g fastjs-cli

Expand Down

0 comments on commit 85c6e05

Please sign in to comment.