Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
@advisr/pptx-compose
Advanced tools
Parses Open Office XML generated PPTX to JSON
$ npm install pptx-compose
See changelog here for API updates and compatibility issues.
import PPTXCompose from "pptx-compose";
// Initialize repo
const composer = new PPTXCompose(options);
// Parses a PPTX file to JSON
const pptx = await composer.toJSON("/path/to/my.pptx");
// Parses JSON output to PPTX
const json = await composer.toPPTX("/path/to/my.json");
Composer is able to generate JSON from PPTX source directly from CLI, run:
# Usage: convert [options] <input> <output>
# Options:
# -V, --version output the version number
# -i, --input PPTX File
# -o, --output Output JSON file (optional)
# -h, --help display help for command
$ node bin/convert ./path/to/my.pptx path/to/your/directory/generated.json
attribute | type | default |
---|---|---|
jszipBinary | "nodebuffer" / "base64" / "text" / "binarystring" / \ "array" / "uint8array" / "arraybuffer" / "blob" | nodebuffer |
jszipGenerateType | "nodebuffer" / "base64" / "text" / "binarystring" / \ "array" / "uint8array" / "arraybuffer" / "blob" | nodebuffer |
PPTX Composer has following built-in methods:
.toJSON(<pptx_file_path>, <options{Options & { output: string }}>)
Parse PowerPoint file to JSON.
const composer = new PPTXCompose();
// Parses a PPTX file to JSON
const pptx = await composer.toJSON("/path/to/my.pptx");
// Convert a PPTX file to JSON file
composer.toJSON("/path/to/my.pptx", {
output: "/path/to/output/file.pptx",
});
.toPPTX(<json>, <options{Options & { output: string }}>)
Convert JSON file to PPTX.
const composer = new PPTXCompose('{ "my": "json" ... }');
// Parses JSON output to PPTX
const json = await composer.toPPTX("/path/to/my.json");
// Convert JSON to PPTX file
composer.toJSON("/path/to/my.json", {
output: "/path/to/output/file.pptx",
});
MIT
FAQs
PPTX parser to JSON format
We found that @advisr/pptx-compose 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.