@scuderia-fe/docx-to-html
TypeScript icon, indicating that this package has built-in type declarations

0.7.0 • Public • Published

@scuderia-fe/docx-to-html

WARNING: WIP package. Do not use


Blazing fast docx to html converter 🚀

GitHub contributors GitHub License NPM Version

Node

Installation

You can install the package with your favorite package manager

npm install @scuderia-fe/docx-to-html

Your project needs to support asyncWebAssembly:

npm install --save-dev vite-plugin-wasm vite-plugin-top-level-await
import wasm from "vite-plugin-wasm";
import topLevelAwait from "vite-plugin-top-level-await";

export default defineConfig({
  plugins: [wasm(), topLevelAwait()],
});
  • Webpack
module.exports = {
  experiments: {
    asyncWebAssembly: true,
    topLevelAwait: true,
  },
};

Usage

import { convert } from "@scuderia-fe/docx-to-html";

const buffer = await file
  .arrayBuffer()
  .then((buffer) => new Uint8Array(buffer));
const html = wasm.convert(buffer);

Rust

WIP

Package Sidebar

Install

npm i @scuderia-fe/docx-to-html

Weekly Downloads

5

Version

0.7.0

License

MIT

Unpacked Size

1.07 MB

Total Files

7

Last publish

Collaborators

  • scuderia-fe