@tedyang2003/onenote-converter-wasm
v1.0.1
Published
Convert Microsoft OneNote notebooks to HTML — isolated WASM build extracted from Joplin's onenote-converter
Readme
@tedyang2003/onenote-converter-wasm
Convert Microsoft OneNote .one section files to HTML — a standalone WASM build
extracted from Joplin's
packages/onenote-converter.
Install
npm install @tedyang2003/onenote-converter-wasmUsage
const { oneNoteConverter } = require('@tedyang2003/onenote-converter-wasm');
// input: path to a .one section file
// output: directory to write the converted HTML (and any extracted resources) to
// base_path: directory used to resolve relative resources referenced by the section
oneNoteConverter('/path/to/Section.one', '/path/to/output-dir', '/path/to/base-dir');The output directory must already exist. oneNoteConverter writes the converted
HTML and any embedded resources (images, attachments, etc.) into it.
Notes
- Built with
wasm-pack build --target nodejs, so it's Node-only (CommonJS, synchronous WASM loading) — it won't run in a browser as-is. - License: MPL-2.0, without the copyleft exception clause. See
LICENSE.
Source
- Upstream: https://github.com/laurent22/joplin
- Extracted at commit
3c313a5b42c790bda09207d01b9fe6381fffa671 - This package's repo: https://github.com/Tedyang2003/onenote-converter
