nb-docx-maker
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published
npm install nb-docx-maker

frontend

import { exportBuffer } from "nb-docx-maker";
import { saveAs } from "file-saver";

const p = exportBuffer(data);

p.then((blob: Blob) => {
  saveAs(blob, "hello word.docx");
});

node

const fs = require("fs");
const { exportBuffer } = require("nb-docx-maker");

const data = require("./data");

exportBuffer(data)
  .then((buffer) => {
    fs.writeFileSync("hello word.docx", buffer);
  })
  .catch((error) => {
    console.log("error", error);
  });

/nb-docx-maker/

    Package Sidebar

    Install

    npm i nb-docx-maker

    Weekly Downloads

    1

    Version

    1.0.4

    License

    ISC

    Unpacked Size

    12.3 kB

    Total Files

    5

    Last publish

    Collaborators

    • ichigogogo