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

@ooxml-tools/file

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ooxml-tools/file

Inspect Office Open XML files (currently only `.docx`) in nodejs/browser.

Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
103
157.5%
Maintainers
1
Weekly downloads
 
Created
Source

@ooxml-tools/file

Inspect Office Open XML files (currently only .docx) in nodejs/browser.

Usage

import { open } from "@ooxml-tools/file";

const docx = await open("./test.docx");
console.log(await docx.list());

CLI

./ooxml-file <command> [args]

Commands:
  pack <docxpath> <filepath>   pack directory to docx file
  unpack <docxpath> <dirpath>  unpack docx to a directory
  list <docxpath>              list files in docx
  read <docxpath> <filepath>   read file inside docx to sdtout
  write <docxpath> <filepath> -  create/override file in docx

Options:
  --version  Show version number                                       [boolean]
  --help     Show help                                                 [boolean]

Examples:
  ./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

License

MIT

FAQs

Package last updated on 18 Aug 2024

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