Skip to content

Commit

Permalink
docs: add plugins API (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
fraxken authored Apr 23, 2023
1 parent aa1dc34 commit 01f9ed4
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,23 @@ const { logo, projects } = await fetchOrgMetadata("NodeSecure");
console.log({ logo, projects });
```

### Available plugins

- <kbd>scorecard</kbd> for OSSF Scorecard
- <kbd>nodesecure</kbd> to include NodeSecure scanner `verify` method.

Plugins need to be requested while fetching organization metadata:
```js
const { projects } = await fetchOrgMetadata("NodeSecure", {
plugins: ["scorecard", "nodesecure"]
});

for (const { plugins } of projects) {
console.log(plugins.scorecard);
console.log(plugins.nodesecure);
}
```

## Contributors ✨

<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
Expand Down

0 comments on commit 01f9ed4

Please sign in to comment.