New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@imrandil/json_to_excel

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@imrandil/json_to_excel

A simple npm package for generating Excel files (xlsx) from JSON objects array.

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-60%
Maintainers
1
Weekly downloads
 
Created
Source

@imrandil/json_to_excel

A simple npm package for generating Excel files (xlsx) from JSON objects array.

Installation

npm install @imrandil/json_to_excel

Usage

const JsonToExcel = require('@imrandil/json_to_excel');

// Example options
const options = {
  jsonFilePath: 'path/to/your/json/file.json',
  outputFileName: 'output.xlsx',
  batchSize: 100,
  headers: ['Column1', 'Column2', 'Column3'],
  sheetName: 'Sheet1'
};

// Create an instance of JsonToExcel with options
const converter = new JsonToExcel(options);

// Convert JSON data to Excel
converter.convert();

Options

  • jsonFilePath: The file path to the JSON data to be converted.
  • outputFileName: The name of the Excel file to be generated.
  • batchSize: The number of JSON data items to process before writing to the Excel file (default: 100).
  • headers: An array of strings representing the headers for the Excel file.
  • sheetName: The name of the sheet in the Excel file (default: 'Data').

License

MIT

Author

Ali Imran Adil

Repository

GitHub Repository

Bugs

Issue Tracker

Keywords

FAQs

Package last updated on 08 May 2024

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

  • 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