https://github.com/meteorlxy/keynote-parser
A library for parsing Apple Keynote file.
https://github.com/meteorlxy/keynote-parser
iwa iwa-parser keynote keynote-parser
Last synced: 2 months ago
JSON representation
A library for parsing Apple Keynote file.
- Host: GitHub
- URL: https://github.com/meteorlxy/keynote-parser
- Owner: meteorlxy
- License: mit
- Created: 2023-02-20T11:04:59.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-22T06:58:40.000Z (3 months ago)
- Last Synced: 2025-05-07T17:11:49.932Z (2 months ago)
- Topics: iwa, iwa-parser, keynote, keynote-parser
- Language: TypeScript
- Homepage:
- Size: 3.47 MB
- Stars: 12
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# keynote-parser2
[](https://github.com/meteorlxy/keynote-parser/actions?query=workflow%3Acheck)
[](https://www.npmjs.com/package/keynote-parser2)
[](https://github.com/meteorlxy/keynote-parser/blob/main/LICENSE)A library for parsing Apple Keynote file.
## Install
```sh
npm i keynote-parser2
```## Usage
### Command Line
Parse keynote (.key) file:
```sh
# 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:
```ts
import { parse } from 'keynote-parser2';await parse(
'/path/to/keynote_file.key',
'/path/to/keynote_file_parsed_directory',
);
```Parse IWA (.iwa) file:
```ts
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
- [obriensp/iWorkFileFormat](https://github.com/obriensp/iWorkFileFormat)
- [psobot/keynote-parser](https://github.com/psobot/keynote-parser) (Python)
- [pranaygp/keynote-parser](https://github.com/pranaygp/keynote-parser) (Node.js)## License
[MIT](https://github.com/meteorlxy/keynote-parser/blob/main/LICENSE) © [meteorlxy](https://github.com/meteorlxy) & [Contributors](https://github.com/meteorlxy/keynote-parser/graphs/contributors)