
Security News
NIST Under Federal Audit for NVD Processing Backlog and Delays
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
@docling/docling-core
Advanced tools
TypeScript definitions and functions for using Docling output.
TypeScript definitions and functions for using Docling output, which simplifies document processing, parsing diverse formats — including advanced PDF understanding. This package supports integrating Docling output into your Type-/JavaScript app with type definitions and utility functions that reflect the Docling Core Python library.
npm i @docling/docling-core
To convert a document you can:
Next, fetch the (typed) conversion:
import { type DoclingDocument } from '@docling/docling-core';
async function fetchConversion(url: string) {
const response = await fetch(url);
return (await response.json()) as DoclingDocument;
}
Use the utility and typing functions for easy access to the converted document contents:
import { iterateDocumentItems, isDocling } from '@docling/docling-core';
for (const [item, level] of iterateDocumentItems(conversion)) {
if (isDocling.TextItem(item)) {
console.log(item.text);
} else if (isDocling.TableItem(item)) {
...
}
}
This package does not
This package is tied to a specific version of the docling document format. Upgrade to a newer version of the document format:
package.json
set config.docling
to the target version. For example, "docling": "v23.3.0"
npm run generate
FAQs
TypeScript definitions and functions for using Docling output.
The npm package @docling/docling-core receives a total of 753 weekly downloads. As such, @docling/docling-core popularity was classified as not popular.
We found that @docling/docling-core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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.
Security News
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Research
Security News
Socket’s Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.
Security News
TypeScript Native Previews offers a 10x faster Go-based compiler, now available on npm for public testing with early editor and language support.