
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@code-pushup/portal-client
Advanced tools
Type definitions and client for uploading report to portal.
npm install @code-pushup/portal-client
import { uploadToPortal } from '@code-pushup/portal-client';
// ...
const report = await uploadToPortal({
server: '<GRAPHQL URL>',
apiKey: process.env.CODE_PUSHUP_API_KEY,
data: {
organization: '<ORGANIZATION SLUG>',
project: '<PROJECT SLUG>',
commit: '<COMMIT SHA>',
plugins: [
// ...
],
categories: [
// ...
],
// ...
},
});
import { getPortalComparisonLink } from '@code-pushup/portal-client';
// ...
const url = await getPortalComparisonLink({
server: '<GRAPHQL URL>',
apiKey: process.env.CODE_PUSHUP_API_KEY,
parameters: {
organization: '<ORGANIZATION SLUG>',
project: '<PROJECT SLUG>',
before: '<COMMIT SHA_1>',
after: '<COMMIT SHA_2>',
},
});
import { downloadFromPortal } from '@code-pushup/portal-client';
// ...
const report = await downloadFromPortal({
server: '<GRAPHQL URL>',
apiKey: process.env.CODE_PUSHUP_API_KEY,
parameters: {
organization: '<ORGANIZATION SLUG>',
project: '<PROJECT SLUG>',
/* OPTIONAL: if commit not provided, finds latest report in default branch */
// commit: '<COMMIT SHA>',
/* OPTIONAL: opt in to including audit details (issues, trees, etc.), omitted by default to minimize payload */
// withDetails: true,
},
});
FAQs
API client with type definitions for Code PushUp Portal.
The npm package @code-pushup/portal-client receives a total of 2,249 weekly downloads. As such, @code-pushup/portal-client popularity was classified as popular.
We found that @code-pushup/portal-client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.