New:Socket for Asana Is Now Available.Learn more
Get Started

@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

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
47
1075%
Maintainers
1
Weekly downloads
 
Created
Source

@vox-ai-app/vox-parser

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

Install

npm install @vox-ai-app/vox-parser

Usage

import { readDocumentFile, PARSED_EXTENSIONS } from '@vox-ai-app/vox-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/vox-parser/formats/docx'
import parsePdf from '@vox-ai-app/vox-parser/formats/pdf'
import parsePptx from '@vox-ai-app/vox-parser/formats/pptx'
import parseXlsx from '@vox-ai-app/vox-parser/formats/xlsx'
import parseOpenDoc from '@vox-ai-app/vox-parser/formats/opendoc'
import parseRtf from '@vox-ai-app/vox-parser/formats/rtf'
import parseXml from '@vox-ai-app/vox-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 27 Mar 2026

Related posts