
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.
Convert Word and Excel documents in Node.js (for Windows only). This is a wrapper around DocTo.
Microsoft Word/Excel must be installed on the system.
npm install msoconvert --save
const convert = require("msoconvert");
// All the folling options are strings:
convert({
input, // Input file or directory path.
output, // Output file or directory path.
// The two following only apply if input is a directory:
inputExt, // Extension to search for if directory.
outputExt, // Output extension.
// Recommended:
encoding, // Output encoding (see below).
// Additional options:
use, // "word" (default) | "excel" | "powerpoint"
format, // wdSaveFormat for output (see below).
options // Additional arguments passed to docto.exe. Refer to DocTo documentation.
})
// A promise is returned.
.then(() => console.log("done"));
See DocTo documentation for more information about API and additional parameters.
encodingAvailable encodings can be found in enums/msoencodings.json. It is possible to avoid the msoencoding prefix.
If encoding is not defined, msoconvert will use the default encoding defined in MS Office application settings. It is recommended to always define an encoding.
formatwdSaveFormat enums:
If format is not defined, msoconvert will try to guess the format from outputExt if provided (otherwise an error will be thrown).
FAQs
Convert Word and Excel documents (Windows only)
The npm package msoconvert receives a total of 1 weekly downloads. As such, msoconvert popularity was classified as not popular.
We found that msoconvert demonstrated a not healthy version release cadence and project activity because the last version was released 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
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.