
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@anyparser/test
Advanced tools
The `@anyparser/core` Typescript SDK enables developers to quickly extract structured data from a wide variety of file formats like PDFs, images, websites, audio, and videos.
A powerful JavaScript SDK for parsing and extracting structured data from various file formats including PDFs, images, and web pages.
npm install @anyparser/core
For TypeScript users, types are included in the package.
Before starting, add a new API key on the Anyparser Studio.
export ANYPARSER_API_URL=https://anyparserapi.com
export ANYPARSER_API_KEY=<your-api-key>
import { Anyparser } from '@anyparser/core'
const parser = new Anyparser()
async function main() {
const result = await parser.parse('docs/sample.docx')
console.log(result)
}
main().catch(console.error)
import { Anyparser, AnyparserResultBase } from '@anyparser/core'
const parser = new Anyparser()
async function main() {
const files = ['docs/sample1.docx', 'docs/sample2.pdf']
const result = await parser.parse(files) as AnyparserResultBase[]
for (const item of result) {
console.log('File:', item.originalFilename)
console.log('Total characters:', item.totalCharacters)
console.log('Markdown:', item.markdown?.substring(0, 500))
}
}
main().catch(console.error)
import { Anyparser, AnyparserOption, OCR_LANGUAGES } from '@anyparser/core'
const options = {
model: 'ocr',
format: 'markdown',
ocrLanguage: [OCR_LANGUAGES.JAPANESE]
}
const parser = new Anyparser(options)
async function main() {
const result = await parser.parse('docs/document.png')
console.log(result)
}
main().catch(console.error)
Anyparser Classnew Anyparser(options?: AnyparserOption)
parse(filePathsOrUrl: string | string[]): Promise<Result>The AnyparserOption interface supports the following configuration:
interface AnyparserOption {
apiUrl?: URL // API endpoint URL
apiKey?: string // Your API key
format?: 'json' | 'markdown' | 'html'
model?: string // e.g. 'ocr'
image?: boolean // Extract images
table?: boolean // Extract tables
ocrLanguage?: string[] // OCR language codes
ocrPreset?: string // OCR preset ('scan', etc)
}
We welcome contributions! Please see our Contributing Guide for details.
Apache-2.0
FAQs
The `@anyparser/core` Typescript SDK enables developers to quickly extract structured data from a wide variety of file formats like PDFs, images, websites, audio, and videos.
The npm package @anyparser/test receives a total of 0 weekly downloads. As such, @anyparser/test popularity was classified as not popular.
We found that @anyparser/test demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.