0.0.3 • Published 3 years ago
orgize v0.0.3
orgize
Quick start
Install the package:
npm install orgize
yarn add orgize
Load the wasm module and init:
Web
import { init, renderHtml } from "orgize";
init().then(() => {
console.log(renderHtml("* Hello, /world/!"));
});
Node.js
const { init, renderHtml } = require("orgize");
const { readFileSync } = require("fs");
const bytes = readFileSync(require.resolve("orgize/lib/orgize_bg.wasm"));
const wasmModule = new WebAssembly.Module(bytes);
init(wasmModule).then(() => {
console.log(renderHtml("* Hello, /world/!"));
});
License
MIT