Socket
Socket
Sign inDemoInstall

@syncfusion/ej2-excel-export

Package Overview
Dependencies
Maintainers
4
Versions
129
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@syncfusion/ej2-excel-export

Essential Javascript 2 Excel Export Library


Version published
Weekly downloads
111K
increased by0.7%
Maintainers
4
Weekly downloads
 
Created

What is @syncfusion/ej2-excel-export?

@syncfusion/ej2-excel-export is a powerful library for exporting data to Excel files. It provides a wide range of functionalities to create, manipulate, and export Excel worksheets programmatically. This package is particularly useful for applications that need to generate Excel reports or export data in a structured format.

What are @syncfusion/ej2-excel-export's main functionalities?

Create a Workbook

This feature allows you to create a new Excel workbook and add a worksheet to it. You can define columns and rows, and then save the workbook as an Excel file.

const { Workbook, Worksheet } = require('@syncfusion/ej2-excel-export');

let workbook = new Workbook();
let worksheet = workbook.addWorksheet('Sheet1');
worksheet.columns = [
  { width: 20 },
  { width: 25 }
];
worksheet.rows = [
  { cells: [{ value: 'Hello' }, { value: 'World' }] }
];
workbook.xlsx.writeFile('Sample.xlsx');

Format Cells

This feature allows you to apply various styles to cells, such as font color, bold, and italic. This is useful for highlighting important data or making the spreadsheet more readable.

const { Workbook, Worksheet } = require('@syncfusion/ej2-excel-export');

let workbook = new Workbook();
let worksheet = workbook.addWorksheet('Sheet1');
worksheet.columns = [
  { width: 20 },
  { width: 25 }
];
worksheet.rows = [
  { cells: [{ value: 'Hello', style: { fontColor: '#FF0000', bold: true } }, { value: 'World', style: { fontColor: '#0000FF', italic: true } }] }
];
workbook.xlsx.writeFile('FormattedSample.xlsx');

Add Formulas

This feature allows you to add formulas to cells. Formulas can be used to perform calculations based on the values of other cells, making it easier to generate dynamic and interactive spreadsheets.

const { Workbook, Worksheet } = require('@syncfusion/ej2-excel-export');

let workbook = new Workbook();
let worksheet = workbook.addWorksheet('Sheet1');
worksheet.columns = [
  { width: 20 },
  { width: 25 }
];
worksheet.rows = [
  { cells: [{ value: 10 }, { value: 20 }] },
  { cells: [{ formula: '=A1+B1' }] }
];
workbook.xlsx.writeFile('FormulaSample.xlsx');

Other packages similar to @syncfusion/ej2-excel-export

Keywords

FAQs

Package last updated on 27 Aug 2019

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