Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@advisr/pptx-compose-2
Advanced tools
Readme
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-2 receives a total of 107 weekly downloads. As such, @advisr/pptx-compose-2 popularity was classified as not popular.
We found that @advisr/pptx-compose-2 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.