Socket
Socket
Sign inDemoInstall

js-downloadexcel

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-downloadexcel - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

6

index.js

@@ -25,3 +25,7 @@ import XLSX from 'xlsx'

exports.download = (data, downloadFileName) => {
exports.download = ({ data, rowColConfig, colWidth, downloadFileName }) => {
let temp = XLSX.utils.json_to_sheet(data)
if (rowColConfig) { temp["!merges"] = rowColConfig }
if (colWidth) { temp['!cols'] = colWidth }
saveAsXlsx(

@@ -28,0 +32,0 @@ new Blob([s2SStream(XLSX.write(

2

package.json
{
"name": "js-downloadexcel",
"version": "1.0.0",
"version": "1.0.1",
"description": "下载excel",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc