Skip to content

Commit 7f661c8

Browse files
authored
Updated the README with instructions for adding from JSR for Deno (#157)
2 parents 1f88c8b + 35b67fc commit 7f661c8

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ arithmetic on IP addresses and subnets.
1717

1818
### Node.js
1919

20-
Install with `npm`:
20+
Install from NPM:
2121

2222
```sh
2323
npm install @cldn/ip
@@ -31,10 +31,16 @@ import { IPv4, IPv6, Subnet } from "@cldn/ip";
3131

3232
### Deno
3333

34-
Import the package from npm using the standard prefix:
34+
Add from JSR:
35+
36+
```sh
37+
deno add jsr:@cldn/ip
38+
```
39+
40+
Import and use:
3541

3642
```ts
37-
import { IPv4, IPv6, Subnet } from "npm:@cldn/ip";
43+
import { IPv4, IPv6, Subnet } from "@cldn/ip";
3844
```
3945

4046
### Browsers
@@ -91,7 +97,7 @@ For real-time chat or community discussions, join our Matrix space:
9197

9298
## Licence
9399

94-
Copyright © 2024–2025 Cloudnode OÜ.
100+
Copyright © 2024–2026 Cloudnode OÜ.
95101

96102
This project is licensed under the terms of the
97103
[LGPL-3.0](https://github.com/cloudnode-pro/ip/blob/master/COPYING) licence.

0 commit comments

Comments
 (0)