
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@enconvert/sdk
Advanced tools
JavaScript / TypeScript SDK for the Enconvert file conversion API.
Convert URLs to PDFs, capture screenshots, transform images, and convert documents — all with a single API call. Node 18+.
npm install enconvert
import { Enconvert } from "enconvert";
const client = new Enconvert({ apiKey: "sk_..." });
const result = await client.convertUrlToPdf("https://example.com", {
saveTo: "page.pdf",
});
console.log(result.presignedUrl);
const result = await client.convertUrlToScreenshot("https://example.com", {
viewportWidth: 1440,
saveTo: "screenshot.png",
});
Extract clean GitHub-Flavored Markdown from any URL — strips nav/footer/ads/scripts, keeps the main article content, and adds YAML frontmatter (title, description, url, links, images).
const result = await client.convertUrlToMarkdown("https://example.com/article", {
saveTo: "article.md",
});
const result = await client.convertImage("photo.heic", {
outputFormat: "webp",
saveTo: "photo.webp",
});
Supported formats: jpeg, png, svg, heic, webp
await client.convertDocument("report.docx", { saveTo: "report.pdf" });
await client.convertDocument("data.json", { outputFormat: "yaml", saveTo: "data.yaml" });
Supported inputs: doc/docx, xls/xlsx, ppt/pptx, html, odt, ods, odp, epub, markdown, csv, json, xml, yaml, toml
const status = await client.getJobStatus("job_abc123");
if (status.status === "success") {
console.log(status.presignedUrl);
}
const result = await client.convertUrlToPdf("https://example.com", {
pdfOptions: {
pageSize: "A4",
orientation: "landscape",
margins: { top: 10, bottom: 10, left: 15, right: 15 },
},
saveTo: "report.pdf",
});
import { Enconvert, AuthenticationError, RateLimitError, APIError } from "enconvert";
try {
await client.convertUrlToPdf("https://example.com");
} catch (e) {
if (e instanceof AuthenticationError) console.error("Invalid API key");
else if (e instanceof RateLimitError) console.error("Too many requests — slow down");
else if (e instanceof APIError) console.error(`API error [${e.statusCode}]: ${e.message}`);
else throw e;
}
const client = new Enconvert({
apiKey: "sk_...",
timeout: 300_000, // ms, default
});
Sign up at enconvert.com to get your API key.
MIT
FAQs
JavaScript / TypeScript SDK for the Enconvert file conversion API
The npm package @enconvert/sdk receives a total of 0 weekly downloads. As such, @enconvert/sdk popularity was classified as not popular.
We found that @enconvert/sdk 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.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.