Skip to content

Commit b18c946

Browse files
committed
updated examples
1 parent b5c29f5 commit b18c946

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

README.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,8 @@ bun add linktree-parser
2525
```ts
2626
import { scrapeLinktreeAccount } from "linktree-parser";
2727

28-
const { account, error, raw, statusCode } =
29-
await scrapeLinktreeAccount("harshmangalam_");
28+
const { account, error, raw } = await scrapeLinktreeAccount("harshmangalam");
3029

31-
if (statusCode === 404) {
32-
throw new Error("Oops! We couldn't find the username you're looking for");
33-
}
3430
if (error) {
3531
console.error(error);
3632
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "linktree-parser",
33
"module": "index.ts",
44
"type": "module",
5-
"version": "1.3.0",
5+
"version": "1.4.0",
66
"author": {
77
"name": "Harsh Mangalam",
88
"email": "[email protected]",

0 commit comments

Comments
 (0)