Skip to content

Commit

Permalink
add JSR package configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysd committed Mar 2, 2024
1 parent 603cb44 commit e0886f2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,30 @@ assert.notStrictEqual(value.object, cloned.object);

## Installation

### Copy the source directly

This package is licensed with CC0-1.0. Directly copy [index.ts](./index.ts) to your project.

Or install via [npm](https://npmjs.com/) package manager.
### npm

Install via [npm](https://npmjs.com/) package manager.

```sh
npm install --save fast-json-clone
```

### jsr

Install via [JSR](https://jsr.io/) package registry.

```sh
# npm
npx jsr add @rhy/fast-json-clone

# deno
deno add @rhy/fast-json-clone
```

## API

This package exports a single function `cloneJSON`.
Expand Down
6 changes: 1 addition & 5 deletions jsr.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{
"name": "@rhy/fast-json-clone",
"version": "1.0.1",
"exports": "./index.ts",
"exclude": ["**"],
"include": [
"index.ts"
]
"exports": "./index.ts"
}

0 comments on commit e0886f2

Please sign in to comment.