Skip to content

Commit 2ce9244

Browse files
committed
update readme with more devops
1 parent a41305b commit 2ce9244

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ The SDK is distributed through:
2424
3. Start scraping: 🚀
2525

2626
```javascript
27+
// node or bun:
2728
import { ScrapflyClient, ScrapeConfig } from 'scrapfly-sdk';
29+
// deno:
30+
import { ScrapflyClient, ScrapeConfig } from 'jsr:@scrapfly/scrapfly-sdk';
2831

2932
const key = 'YOUR SCRAPFLY KEY';
3033
const client = new ScrapflyClient({ key });
@@ -82,13 +85,19 @@ This is a Deno Typescript project that builds to NPM through [DNT](https://githu
8285
- `__tests__` directory contains tests for the source code.
8386
- `deno.json` contains meta information
8487
- `build.ts` is the build script that builds the project to nodejs ESM package.
85-
- `/npm` directory will be produced when `buil.ts` is executed for building node package.
88+
- `/npm` directory will be produced when `built.ts` is executed for building node package.
8689

8790
```bash
8891
# make modifications and run tests
8992
$ deno task test
9093
# format
9194
$ deno fmt
9295
# lint
93-
$ deno linst
96+
$ deno lint
97+
# publish jsr:
98+
$ deno publish
99+
# build NPM package:
100+
$ deno run -A build.ts
101+
# publish NPM:
102+
$ cd npm && npm publish
94103
```

0 commit comments

Comments
 (0)