Skip to content

A library for parsing Apple Keynote file.

License

Notifications You must be signed in to change notification settings

meteorlxy/keynote-parser

Repository files navigation

keynote-parser2

github check npm license

A library for parsing Apple Keynote file.

Install

npm i keynote-parser2

Usage

Command Line

Parse keynote (.key) file:

# output the parsed result to `keynote_file.key.parsed` by default
keynote-parser keynote_file.key
# specify the output directory
keynote-parser keynote_file.key keynote_file_parsed_directory

Node.js API

Parse keynote (.key) file:

import { parse } from 'keynote-parser2';

await parse(
  '/path/to/keynote_file.key',
  '/path/to/keynote_file_parsed_directory',
);

Parse IWA (.iwa) file:

import fs from 'node:fs/promises';
import { parseIwa } from 'keynote-parser2';

const data = await fs.readFile('/path/to/iwa_file.iwa');
const iwaData = parseIwa(data);

Credits

License

MIT © meteorlxy & Contributors