Socket
Socket
Sign inDemoInstall

q3-exports

Package Overview
Dependencies
128
Maintainers
1
Versions
155
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    q3-exports

Q3 exporting is currently rudimentary. It supports `csv`, `pdf` and `xlsl` but simply abstracts over other libraries, so the data required to make each file type will differ. Both `csv` and `xlsl` are largely the same, using just an array of objects;


Version published
Weekly downloads
14
increased by366.67%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Exports

Q3 exporting is currently rudimentary. It supports csv, pdf and xlsl but simply abstracts over other libraries, so the data required to make each file type will differ. Both csv and xlsl are largely the same, using just an array of objects; whereas pdf generation will require special objects shaped to match pdfmake.

Presently, the only option Q3Exports constructor takes is title, which also only affects xlsx files. More to come as further file types are added.

const Q3Export = require('q3-exports');

new Q3Exports('xlsx', { title: 'My Custom Workbook' })
  .toBuffer([
    {
      col: 'Col1',
      col2: 'Col2',
      // ... etc
    },
  ])
  .then((buf) => {
    console.log(buf);
  });

FAQs

Last updated on 06 Feb 2023

Did you know?

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

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc