You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

delta2word

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

delta2word

运行在浏览器环境下的delta转换为word的包

1.0.6
latest
npmnpm
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

运行在浏览器环境下的 delta 转换为 word 的包

支持生成的数据 blob, buffer, base64

浏览器用法如下:

import delta2word, { ExportType } from 'delta2word';
import { saveAs } from 'file-saver';

const blob = await delta2word({
    delta: deltaData,
    title: '',
    exportType: ExportType.Blob,
});
saveAs(blob as Blob, 'a.docx');

electron 环境 渲染进程使用

import delta2word, { ExportType } from 'delta2word';
const fs = require("fs)

delta2word({
  title: '1',
  delta: testDelta,
  exportType: 'buffer',
}).then((buffer) => {
  fs.writeFileSync('./test.docx', buffer);
});

Keywords

delta

FAQs

Package last updated on 08 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.