1.0.4 • Published 12 months ago

nb-docx-maker v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
12 months ago
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);
  });
1.0.4

12 months ago

1.0.2

12 months ago

1.0.1

1 year ago

1.0.0

1 year ago