File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,10 @@ The SDK is distributed through:
24243 . Start scraping: 🚀
2525
2626``` javascript
27+ // node or bun:
2728import { ScrapflyClient , ScrapeConfig } from ' scrapfly-sdk' ;
29+ // deno:
30+ import { ScrapflyClient , ScrapeConfig } from ' jsr:@scrapfly/scrapfly-sdk' ;
2831
2932const key = ' YOUR SCRAPFLY KEY' ;
3033const 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```
You can’t perform that action at this time.
0 commit comments