Skip to content

Commit

Permalink
chore: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack-Works committed Mar 5, 2024
1 parent fc4b575 commit 9f38b93
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

[![Code coverage](https://codecov.io/gh/Jack-Works/async-call-rpc/branch/main/graph/badge.svg)](https://codecov.io/gh/Jack-Works/async-call-rpc)
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/Jack-Works/async-call-rpc/build.yml?branch=main)](https://github.com/Jack-Works/async-call-rpc/actions)
[![npm](https://img.shields.io/npm/v/async-call-rpc)](https://npmjs.org/async-call-rpc)
[![npm](https://img.shields.io/npm/v/async-call-rpc)](https://npmjs.org/async-call-rpc) [![@works/json-rpc on jsr](https://jsr.io/badges/@works/json-rpc)](https://jsr.io/@works/json-rpc)
![ES2015+](https://img.shields.io/badge/ECMAScript-2015%2B-brightgreen)

## Links
Expand Down Expand Up @@ -49,10 +49,27 @@ Chapters:
>
> pnpm i async-call-rpc
### Import from browser or Deno
### Install via [jsr](https://jsr.io/@works/json-rpc)

This package is published as `@works/json-rpc` on the jsr.
If you install it via jsr, you should import this package from `"@works/json-rpc"` instead of `"async-call-rpc"`

> deno add @works/json-rpc
>
> npx jsr add @works/json-rpc
>
> yarn dlx jsr add @works/json-rpc
>
> pnpm dlx jsr add @works/json-rpc
>
> bunx jsr add @works/json-rpc
### Import from browser

You can access <https://www.jsdelivr.com/package/npm/async-call-rpc?path=out> to get the latest URL and [SRI](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity).

Note: the `utils/` entrypoint is not published on the jsr.

```js
import { AsyncCall } from 'https://cdn.jsdelivr.net/npm/async-call-rpc@latest/out/base.mjs'
```
Expand Down

0 comments on commit 9f38b93

Please sign in to comment.