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:
24
24
3 . Start scraping: 🚀
25
25
26
26
``` javascript
27
+ // node or bun:
27
28
import { ScrapflyClient , ScrapeConfig } from ' scrapfly-sdk' ;
29
+ // deno:
30
+ import { ScrapflyClient , ScrapeConfig } from ' jsr:@scrapfly/scrapfly-sdk' ;
28
31
29
32
const key = ' YOUR SCRAPFLY KEY' ;
30
33
const client = new ScrapflyClient ({ key });
@@ -82,13 +85,19 @@ This is a Deno Typescript project that builds to NPM through [DNT](https://githu
82
85
- ` __tests__ ` directory contains tests for the source code.
83
86
- ` deno.json ` contains meta information
84
87
- ` 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.
86
89
87
90
``` bash
88
91
# make modifications and run tests
89
92
$ deno task test
90
93
# format
91
94
$ deno fmt
92
95
# 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
94
103
```
You can’t perform that action at this time.
0 commit comments