orgize
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i orgize

Weekly Downloads

0

Version

0.0.3

License

MIT

Unpacked Size

282 kB

Total Files

8

Last publish

Collaborators

  • poiscript