We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc1056a commit 0af635eCopy full SHA for 0af635e
README.md
@@ -1,2 +1,7 @@
1
# amazon
2
-Amazon for deno
+Amazon for deno:
3
+- check if amazon website is online
4
+
5
+```ts
6
+import { Amazon } from "https://deno.land/x/amazon"
7
+```
main.ts
mod.ts
@@ -0,0 +1,11 @@
+export class Amazon {
+ public async isOnline(){
+ try {
+ let req = await fetch('https://www.amazon.com/');
+ if (req.status === 200) {
+ return true;
+ }
8
+ } catch (error) {}
9
+ return false;
10
11
+}
0 commit comments