
Security News
/Company News
Socket Is Sponsoring Composer and Packagist
Socket has joined the new Composer and Packagist sponsorship program as a launch sponsor, supporting the team that keeps PHP's package ecosystem secure.
@ooxml-tools/file
Advanced tools
Read/write Office Open XML files in nodejs/browser.
Support for reading and writing to
.docx — WordprocessingML.xlsx — SpreadsheetML.pptx — PresentationML (coming soon)The module accepts a JSZip instance and adds some additional functionality
import { open, openAsArrayBuffer } from "@ooxml-tools/file";
await zip.loadAsync(openAsArrayBuffer(ooxmlpath));
const doc = open("docx", zip);
console.log(await docx.list());
# ooxml-file <command> [args]
#
# Commands:
# formats list valid formats
# init <ooxmlpath> initializes a blank file (docx)
# pack <ooxmlpath> <dirpath> pack directory to docx file
# unpack <ooxmlpath> <dirpath> unpack docx to a directory
# list <ooxmlpath> list files in docx
# read <ooxmlpath> <filepath> read file inside docx to sdtout
# write <ooxmlpath> <filepath> create/override file in docx
#
# Options:
# --version Show version number [boolean]
# --help Show help [boolean]
#
# Examples:
# ooxml-file init ./test.docx
# ooxml-file unpack ./test.docx test.docx.unpacked
# ooxml-file pack ./test.docx test.docx.unpacked
# ooxml-file list ./test.docx
# ooxml-file read ./test.docx word/document.xml
# ooxml-file write ./test.docx word/document.xml < input.xml
MIT
FAQs
Read/write Office Open XML files in nodejs/browser
The npm package @ooxml-tools/file receives a total of 102 weekly downloads. As such, @ooxml-tools/file popularity was classified as not popular.
We found that @ooxml-tools/file 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.

Security News
/Company News
Socket has joined the new Composer and Packagist sponsorship program as a launch sponsor, supporting the team that keeps PHP's package ecosystem secure.

Research
/Security News
Benign-looking npm packages split malicious functionality across a dependency chain that deploys a cross-platform RAT targeting Alibaba developers.

Research
/Security News
Two Joyfill npm beta releases contain an import-time implant that uses blockchain transactions to retrieve a remote-access trojan.