🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@vox-ai-app/parser

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vox-ai-app/parser

Document parsing (PDF, DOCX, PPTX, XLSX, ODT, RTF) for Vox

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

@vox-ai-app/parser

Document parsing for Vox. Extracts plain text from PDF, DOCX, PPTX, XLSX, ODT, RTF, and XML files.

Install

npm install @vox-ai-app/parser

Usage

import { readDocumentFile, PARSED_EXTENSIONS } from '@vox-ai-app/parser'

// Read any supported document
const result = await readDocumentFile('/path/to/file.pdf')
console.log(result.text) // extracted plain text
console.log(result.truncated) // true if maxChars was hit

// Check if an extension is supported
PARSED_EXTENSIONS.has('.pdf') // true
PARSED_EXTENSIONS.has('.docx') // true

Individual parsers

import parseDocx from '@vox-ai-app/parser/formats/docx'
import parsePdf from '@vox-ai-app/parser/formats/pdf'
import parsePptx from '@vox-ai-app/parser/formats/pptx'
import parseXlsx from '@vox-ai-app/parser/formats/xlsx'
import parseOpenDoc from '@vox-ai-app/parser/formats/opendoc'
import parseRtf from '@vox-ai-app/parser/formats/rtf'
import parseXml from '@vox-ai-app/parser/formats/xml'

const { text } = await parseDocx('/path/to/file.docx', 60_000)

Each parser accepts (filePath, maxChars?) and returns { text, truncated }.

Supported formats

ExtensionParser
.pdfunpdf
.docxadm-zip
.pptxadm-zip
.xlsxadm-zip
.odt, .odp, .odsadm-zip
.rtfbuilt-in
.xml, .svgbuilt-in

License

MIT

FAQs

Package last updated on 01 Apr 2026

Did you know?

Socket

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.

Install

Related posts