
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
capture-node
Advanced tools
Node Library for capture.page
Get your API Key and Secret from https://capture.page/console
List of all capture options: https://docs.capture.page
npm install capture-node
List of all capture options: https://docs.capture.page
import { Capture } from 'capture-node';
const capture = new Capture(YOUR_API_KEY, YOUR_API_SECRET);
// or initialize with edge endpoint
// const capture = new Capture(YOUR_API_KEY, YOUR_API_SECRET, { useEdge: true });
// var url = capture.buildImageUrl(URL_TO_CAPTURE, CAPTURE_OPTIONS);
const url = capture.buildImageUrl('https://capture.page/', {
full: true,
delay: 3,
t: Date.now()
});
// or
const image = await capture.fetchImage('https://capture.page/', {
full: true,
delay: 3,
t: Date.now()
});
Now stick that url in an img tag to render the screenshot!
import { Capture } from 'capture-node';
const capture = new Capture(YOUR_API_KEY, YOUR_API_SECRET);
// var url = capture.buildPdfUrl(URL_TO_CAPTURE, CAPTURE_OPTIONS);
const url = capture.buildPdfUrl('https://capture.page/', {
full: true,
delay: 3,
t: Date.now()
});
// or
const pdf = capture.fetchPdf('https://capture.page/', {
full: true,
delay: 3,
t: Date.now()
});
import { Capture } from 'capture-node';
const capture = new Capture(YOUR_API_KEY, YOUR_API_SECRET);
// var url = capture.buildContentUrl(URL_TO_CAPTURE, CAPTURE_OPTIONS);
const url = capture.buildContentUrl('https://capture.page/');
// or
const content = await capture.fetchContent('https://capture.page/');
import { Capture } from 'capture-node';
const capture = new Capture(YOUR_API_KEY, YOUR_API_SECRET);
// var url = capture.buildMetadataUrl(URL_TO_CAPTURE, CAPTURE_OPTIONS);
const url = capture.buildMetadataUrl('https://capture.page/');
// or
const content = await capture.fetchMetadata('https://capture.page/');
FAQs
Node Library for capture.page
We found that capture-node demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.