
Security News
Feross on the 10 Minutes or Less Podcast: Nobody Reads the Code
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.
Operating Powerpoint file (Microsoft Office 2007 and later) as Office Open XML without external tools, just pure Javascript.
Providing two main functions:
The images, movies, audio files and so on in a PowerPoint are treated as binary.
This is strongly inspired from pptx-compose.
$ npm install pptx2json
const PPTX2Json = require('pptx2json');
const pptx2json = new PPTX2Json();
const json = await pptx2json.toJson('path/to/pptx');
If you want to get a buffer below:
const PPTX2Json = require('pptx2json');
const pptx2json = new PPTX2Json();
const json = await pptx2json.toJson('path/to/pptx');
:
// return buffer to pptx
const pptx = await pptx2json.toPPTX(json);
Otherwise want to write a file below:
const PPTX2Json = require('pptx2json');
const pptx2json = new PPTX2Json();
const json = await pptx2json.toJson('path/to/pptx');
:
// write pptx to the path
await pptx2json.toPPTX(json, {'file': 'path/to/output.pptx'});
const PPTX2Json = require('pptx2json');
const pptx2json = new PPTX2Json();
const json = await pptx2json.toJson(testPPTX);
const ids = pptx2json.getMaxSlideIds(json);
// {'id': 5, 'rid': 3}
const PPTX2Json = require('pptx2json');
const pptx2json = new PPTX2Json();
const json = await pptx2json.toJson(testPPTX);
const table = pptx2json.getSlideLayoutTypeHash(json);
// {
// 'title': 'ppt/slideLayouts/slideLayout1.xml',
// 'blank': 'ppt/slideLayouts/slideLayout7.xml'
// }
FAQs
Parse a Powerpoint file to a Json.
The npm package pptx2json receives a total of 13,138 weekly downloads. As such, pptx2json popularity was classified as popular.
We found that pptx2json 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
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.