Skip to content

Commit 7d2e4e2

Browse files
committed
docs: update readme
1 parent 2cd0005 commit 7d2e4e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ It downloads packages from the npm registry and analyzes them to extract their p
3434
import { extractPackageApi } from "@jsdocs-io/extractor";
3535

3636
(async () => {
37-
const packageApi = await extractPackageApi({ pkg: "preact" });
37+
const packageApi = await getPackageApi({ pkg: "preact" });
3838
console.log(JSON.stringify(packageApi, null, 2));
3939
})();
4040
```
@@ -45,7 +45,7 @@ import { extractPackageApi } from "@jsdocs-io/extractor";
4545
import { extractPackageApi } from "@jsdocs-io/extractor";
4646

4747
(async () => {
48-
const result = await extractPackageApi({ pkg: "preact", subpath: "hooks" });
48+
const result = await getPackageApi({ pkg: "preact", subpath: "hooks" });
4949
console.log(JSON.stringify(packageApi, null, 2));
5050
})();
5151
```

0 commit comments

Comments
 (0)