Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@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
The npm package @advisr/pptx-compose receives a total of 0 weekly downloads. As such, @advisr/pptx-compose popularity was classified as not popular.
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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.