Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mr-excel

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mr-excel

A versatile JavaScript library for effortlessly generating .xlsx files from input objects. Seamlessly create Excel spreadsheets with data, formatting, formulas, and more.

  • 2.11.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6.7K
increased by1.4%
Maintainers
1
Weekly downloads
 
Created
Source

MR Excel

images

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

Introduction

Welcome to our JavaScript library designed to effortlessly generate .xlsx files from input objects. This versatile library offers exceptional flexibility and can seamlessly operate on both the client and backend sides of applications.

Our library offers comprehensive support for a wide range of features, including data formatting, formulas, styles, merged cells, and grouped rows.more info, Express/backend example, TypeScript example

In version 2.1.0, we introduced a new feature called "convertTableToExcel," which enables the generation of an Excel file from a specified table or DOM element (table). The provided query is expected to be a valid input for the querySelector method. This enhancement allows for greater flexibility and convenience when creating Excel files directly from HTML tables.

We have four functions that are defined with specific use cases as follows:

  • generateExcel: This is the primary and most important function that serves as the entry point for all other functions. Its responsibility is to generate an Excel file based on the received input data. We will provide examples of the various options that can be utilized.

  • convertTableToExcel: This function is designed exclusively for client-side use. It requires passing a DOM element (a table element) as a parameter. The output of this function is an Excel file generated from the provided table.

  • sideBySideLineByLine: This function offers the capability to generate a single-sheet Excel file containing multiple tables side by side and line by line.

  • themeBaseGenerate: Within this function, we utilize color palettes from https://colorhunt.co/. It accepts data and a theme index as inputs, then generates an Excel file with the selected theme applied.Themes

Installation

Via CDN

You can utilize our library, which comes bundled with Vite, by including the following link:

<script src="https://unpkg.com/mr-excel@latest/dist/excel-table.umd.js"></script>

Alternatively, you have the option to use the bundle with Webpack by incorporating the link provided below:

<script src="https://unpkg.com/mr-excel@latest/dist2/excel-table.js"></script>

Easily integrate our library into your project using either of these methods, and unlock efficient generation of Excel tables with exceptional flexibility.

Using a Package Manager To seamlessly integrate our library, you can install it using your preferred package manager:

Via npm:

npm install mr-excel

Using yarn:

npm install mr-excel

Alternatively, you have the option to use pnpm:

npm install mr-excel

Choose the package manager that suits your workflow, and effortlessly bring the power of our library into your project, enabling smooth generation of Excel tables with ease and efficiency.

Getting Started

After adding the library to your project, generating XLSX files becomes straightforward. You can achieve this by creating a data object similar to the code snippet below:

themeBaseGenerate

let data = {
  sheet: [
    {
      headers: [
        {
          label: "ID",
          text: "ID",
        },
        {
          label: "FirstName",
          text: "First Name",
        },
        {
          label: "LastName",
          text: "Last Name",
        },
        {
          label: "Age",
          text: "Age",
        },
        {
          label: "Email",
          text: "Email",
        },
        {
          label: "PhoneNumber",
          text: "PhoneNumber",
        },
        {
          label: "Address",
          text: "Address",
        },
        {
          label: "Occupation",
          text: "Occupation",
        },
      ],
      data: [
        {
          ID: 1,
          FirstName: "John",
          LastName: "Smith",
          Age: 32,
          Email: "john@example.com",
          PhoneNumber: "555-123-4567",
          Address: "123 Main St, City",
          Occupation: "Engineer",
        },
        {
          ID: 2,
          FirstName: "Jane",
          LastName: "Doe",
          Age: 28,
          Email: "jane@example.com",
          PhoneNumber: "555-987-6543",
          Address: "456 Elm St, Town",
          Occupation: "Teacher",
        },
        {
          ID: 3,
          FirstName: "David",
          LastName: "Johnson",
          Age: 45,
          Email: "david@example.com",
          PhoneNumber: "555-555-5555",
          Address: "789 Oak St, City",
          Occupation: "Doctor",
        },
        {
          ID: 4,
          FirstName: "Sarah",
          LastName: "Brown",
          Age: 22,
          Email: "sarah@example.com",
          PhoneNumber: "555-321-6549",
          Address: "101 Pine St, Town",
          Occupation: "Student",
        },
        {
          ID: 5,
          FirstName: "Michael",
          LastName: "Wilson",
          Age: 38,
          Email: "michael@example.com",
          PhoneNumber: "555-777-8888",
          Address: "246 Maple St, City",
          Occupation: "Lawyer",
        },
        {
          ID: 6,
          FirstName: "Emily",
          LastName: "Davis",
          Age: 29,
          Email: "emily@example.com",
          PhoneNumber: "555-444-3333",
          Address: "555 Birch St, Town",
          Occupation: "Nurse",
        },
        {
          ID: 7,
          FirstName: "Daniel",
          LastName: "Lee",
          Age: 31,
          Email: "daniel@example.com",
          PhoneNumber: "555-666-9999",
          Address: "777 Cedar St, City",
          Occupation: "Software Dev",
        },
        {
          ID: 8,
          FirstName: "Olivia",
          LastName: "White",
          Age: 27,
          Email: "olivia@example.com",
          PhoneNumber: "555-222-1111",
          Address: "888 Redwood St, Town",
          Occupation: "Artist",
        },
        {
          ID: 9,
          FirstName: "James",
          LastName: "Anderson",
          Age: 40,
          Email: "james@example.com",
          PhoneNumber: "555-888-3333",
          Address: "333 Oak St, City",
          Occupation: "Accountant",
        },
        {
          ID: 10,
          FirstName: "Sophia",
          LastName: "Martinez",
          Age: 24,
          Email: "sophia@example.com",
          PhoneNumber: "555-999-7777",
          Address: "666 Pine St, Town",
          Occupation: "Engineer",
        },
      ],
    },
  ],
};
ExcelTable.themeBaseGenerate(data, 0);

Or:

let data = [
  {
    ID: 1,
    FirstName: "John",
    LastName: "Smith",
    Age: 32,
    Email: "john@example.com",
    PhoneNumber: "555-123-4567",
    Address: "123 Main St, City",
    Occupation: "Engineer",
  },
  {
    ID: 2,
    FirstName: "Jane",
    LastName: "Doe",
    Age: 28,
    Email: "jane@example.com",
    PhoneNumber: "555-987-6543",
    Address: "456 Elm St, Town",
    Occupation: "Teacher",
  },
  {
    ID: 3,
    FirstName: "David",
    LastName: "Johnson",
    Age: 45,
    Email: "david@example.com",
    PhoneNumber: "555-555-5555",
    Address: "789 Oak St, City",
    Occupation: "Doctor",
  },
  {
    ID: 4,
    FirstName: "Sarah",
    LastName: "Brown",
    Age: 22,
    Email: "sarah@example.com",
    PhoneNumber: "555-321-6549",
    Address: "101 Pine St, Town",
    Occupation: "Student",
  },
  {
    ID: 5,
    FirstName: "Michael",
    LastName: "Wilson",
    Age: 38,
    Email: "michael@example.com",
    PhoneNumber: "555-777-8888",
    Address: "246 Maple St, City",
    Occupation: "Lawyer",
  },
  {
    ID: 6,
    FirstName: "Emily",
    LastName: "Davis",
    Age: 29,
    Email: "emily@example.com",
    PhoneNumber: "555-444-3333",
    Address: "555 Birch St, Town",
    Occupation: "Nurse",
  },
  {
    ID: 7,
    FirstName: "Daniel",
    LastName: "Lee",
    Age: 31,
    Email: "daniel@example.com",
    PhoneNumber: "555-666-9999",
    Address: "777 Cedar St, City",
    Occupation: "Software Dev",
  },
  {
    ID: 8,
    FirstName: "Olivia",
    LastName: "White",
    Age: 27,
    Email: "olivia@example.com",
    PhoneNumber: "555-222-1111",
    Address: "888 Redwood St, Town",
    Occupation: "Artist",
  },
  {
    ID: 9,
    FirstName: "James",
    LastName: "Anderson",
    Age: 40,
    Email: "james@example.com",
    PhoneNumber: "555-888-3333",
    Address: "333 Oak St, City",
    Occupation: "Accountant",
  },
  {
    ID: 10,
    FirstName: "Sophia",
    LastName: "Martinez",
    Age: 24,
    Email: "sophia@example.com",
    PhoneNumber: "555-999-7777",
    Address: "666 Pine St, Town",
    Occupation: "Engineer",
  },
];
ExcelTable.themeBaseGenerate(data, 12);

convertTableToExcel

ExcelTable.convertTableToExcel("#table");
-------------------------------------------------------------------
let element = document.querySelector("#table");
ExcelTable.convertTableToExcel(null, element, true);
-------------------------------------------------------------------
const rowF = (value, index, from) => {
    return 50
}
const colF = (value, index) => {
    return value * 0.19
}
ExcelTable.convertTableToExcel("#table", null, true, rowF, colF)
result of Example in https://github.com/mohammadrezaeicode/mr-excel-repo/blob/main/example/conv1.html

ex

sideBySideLineByLine

sideBySideLineByLine is a new feature that enables the generation of multiple tables within a single Excel sheet.

const sideData = [
  [
    {
      sheetName: "sheetName",
      spaceX: 1,
      spaceY: 1,
      headers: [
        {
          label: "id",
          text: "id",
        },
      ],
      data: [
        { id: 11 },
        { id: 10 },
        { id: 9 },
        { id: 8 },
        { id: 7 },
        { id: 6 },
        { id: 5 },
        { id: 4 },
        { id: 3 },
        { id: 2 },
        { id: 1 },
      ],
    },
    {
      sheetName: "sheetName",
      spaceX: 1,
      spaceY: 1,
      headers: [
        {
          label: "el",
          text: "el",
        },
      ],
      data: [
        { el: 11 },
        { el: 10 },
        { el: 9 },
        { el: 8 },
        { el: 7 },
        { el: 4 },
        { el: 3 },
        { el: 2 },
        { el: 1 },
      ],
    },
  ],

  [
    {
      sheetName: "sheetName",
      spaceX: 1,
      spaceY: 1,
      headers: [
        {
          label: "id",
          text: "id",
        },
        { label: "test", text: "test" },
      ],
      data: [
        { id: 1 },
        { id: 2 },
        { id: 3 },
        { id: 4 },
        { id: 5 },
        { id: 6 },
        { id: 7 },
        { id: 8 },
        { id: 9 },
        { id: 10 },
        { id: 11 },
      ],
    },
    {
      sheetName: "sheetName1",
      spaceX: 1,
      spaceY: 1,
      headers: [
        {
          label: "id",
          text: "id",
        },
        { label: "test", text: "test" },
      ],
      data: [
        { id: 1 },
        { id: 2 },
        { id: 3 },
        { id: 4 },
        { id: 5 },
        { id: 6 },
        { id: 7 },
        { id: 8 },
        { id: 9 },
        { id: 10 },
        { id: 11 },
      ],
    },
    {
      sheetName: "sheetName",
      spaceX: 1,
      spaceY: 1,
      headers: [
        {
          label: "id",
          text: "id",
        },
        { label: "test", text: "test" },
      ],
      data: [
        { test: "test14", id: "u1i1r23" },
        { test: "test13", id: "u2i2r24" },
        { test: "test12", id: "u3i3r25" },
        { test: "test11", id: "u4i4r26" },
        { test: "test10", id: "u5i5r27" },
        { test: "test9", id: "u6i6r28" },
        { test: "test8", id: "u7i7r29" },
        { test: "test7", id: "u8i8r30" },
        { test: "test6", id: "u9i9r31" },
        { test: "test5", id: "ui1010r32" },
        { test: "test4", id: "ui1111r33" },
        { test: "test3" },
        { test: "test2" },
        { test: "test1" },
      ],
    },
  ],
];
ExcelTable.sideBySideLineByLine(sideData);

generateExcel

//<https://colorhunt.co/palette/f9ed69f08a5db83b5e6a2c70>
const colorPalette = {
  c1: "F9ED69",
  c2: "#F08A5D",
  c3: "B83B5E",
  c4: "6A2C70",
};
const data = {
  creator: "mr",
  created: "2023-08-06T07:22:40Z",
  modified: "2023-08-06T07:22:40Z",
  styles: {
    formulaStyle: {
      fg: "B83B5E",
      border: {
        full: {
          style: "medium",
          color: "F9ED69",
        },
      },
    },
    headerStyle: {
      fg: "F9ED69",
      fontColor: "#F08A5D",
      bold: true,
    },
    rowStyle: {
      fg: "#F08A5D",
      fontColor: "F9ED69",
    },
  },
  sheet: [
    {
      name: "Test",
      formula: {
        B16: {
          type: "SUM",
          start: "B2",
          end: "B8",
          styleId: "formulaStyle",
        },
      },
      tabColor: "B83B5E",
      headers: [
        {
          label: "test",
          text: "Test",
        },
        {
          label: "_id",
          text: "ID",
          formula: {
            type: "MAX",
            styleId: "formulaStyle",
          },
        },
      ],
      data: [
        {
          _id: 0.3,
          test: "test1",
        },
        {
          _id: 2,
          test: "dsssssssssssss",
        },
        {
          _id: 3,
          test: "test3",
        },
        {
          _id: 4,
          test: "test4",
        },
        {
          _id: 5,
          test: "test5",
        },
        {
          _id: 6,
          test: "test6",
        },
        {
          _id: 7,
          test: "test7",
        },
        {
          _id: 8,
          test: "test8",
        },
        {
          _id: 9,
          test: "test9",
        },
        {
          _id: 10,
          test: "test10",
        },
        {
          _id: 11,
          test: "test11",
        },
      ],
    },
    {
      headers: [
        {
          label: "test",
          text: "Test",
        },
        {
          label: "_id",
          text: "ID",
        },
      ],
      data: [
        {
          _id: 1,
          test: "test1",
        },
        {
          _id: 2,
          test: "test2",
        },
        {
          _id: 3,
          test: "test3",
        },
        {
          _id: 4,
          test: "test4",
        },
        {
          _id: 5,
          test: "test5",
        },
        {
          _id: 6,
          test: "test6",
        },
        {
          _id: 7,
          test: "test7",
        },
        {
          _id: 8,
          test: "test8",
        },
        {
          _id: 9,
          test: "test9",
        },
        {
          _id: 10,
          test: "test10",
        },
        {
          _id: 11,
          test: "test11",
        },
      ],
    },
  ],
};
ExcelTable.generateExcel(data);

General option

Each sheet has options for customization. You can change the sheet name using name, adjust the tab name color with tabColor, control visibility with state, add protection to a sheet via protectionOption, and implement sorting and filtering using sortAndfilter. In the example below, we will demonstrate how to utilize these properties. Additionally, for Excel file information, we offer options such as creator, created, notSave, and modified.

*Note: Please use the protectionOption only when necessary, as it may potentially lead to broken generated files. We recommend avoiding the use of other sheet options as well.

*Important Note: Excel file information such as 'name', 'created', and 'modified' is extremely sensitive. If incorrect values are used, it can result in Excel file generation issues. Please exercise extra caution and ensure accurate values for these attributes to avoid any potential disruptions.

Display code
const data = {
  notSave: true,
  creator: "mr",
  created: "2023-08-12T02:08:04.469Z",
  modified: "2023-08-12T02:08:04.469Z",
  sheet: [
    {
      name: "family record",
      tabColor: "#a1b4c6",
      sortAndfilter: {
        mode: "all",
      },
      protectionOption: {
        sheet: 1,
        formatCells: 0,
        formatColumns: 0,
        formatRows: 0,
        insertColumns: 0,
        insertRows: 0,
        insertHyperlinks: 0,
        deleteColumns: 0,
        deleteRows: 0,
        sort: 0,
        autoFilter: 0,
        pivotTables: 0,
      },
      headers: [
        {
          label: "id",
          text: "ID",
        },
        {
          label: "name",
          text: "Name",
        },
        {
          label: "surname",
          text: "Surname",
        },
        {
          label: "parentId",
          text: "Parent Id",
        },
        {
          label: "work",
          text: "Work",
        },
        {
          label: "birthDate",
          text: "Birth Date",
        },
      ],
      data: [
        {
          id: 7209449538085,
          name: "Tabitha",
          surname: "Terry",
          parentId: 6998520522169,
          work: "Computer repair technician",
          birthDate: "1853-04-10T01:23:16.181Z",
        },
        {
          id: 4132538644996,
          name: "Grace",
          surname: "MacTavish",
          parentId: 6840142476821,
          work: "Retired",
          birthDate: "1854-04-03T08:51:19.825Z",
        },
        {
          id: 778493423064,
          name: "Bailey",
          surname: "Byram",
          parentId: 7137102781494,
          work: "Occupational Therapist- Neonatal/ Pediatric",
          birthDate: "1852-08-13T18:07:57.408Z",
        },
        {
          id: 510141747289,
          name: "Sherman",
          surname: "Joseph",
          parentId: 602149579197,
          work: "work from home",
          birthDate: "1854-12-12T05:48:31.806Z",
        },
        {
          id: 5513277402976,
          name: "Ryder",
          surname: "Watrous",
          parentId: 7435302183884,
          work: "Welder",
          birthDate: "1854-08-18T04:11:04.736Z",
        },
        {
          id: 1032906540606,
          name: "Phoenix",
          surname: "Netter",
          parentId: 3204642808212,
          work: "Unemployed",
          birthDate: "1854-07-19T07:53:58.843Z",
        },
        {
          id: 343574032284,
          name: "Tonya",
          surname: "Carpenter",
          parentId: 3709985684199,
          work: "Pulmonologist",
          birthDate: "1852-04-20T12:44:08.362Z",
        },
        {
          id: 9497014533965,
          name: "Coral",
          surname: "Hoskins",
          parentId: 3497153671269,
          work: "Unemployed",
          birthDate: "1854-12-01T22:08:59.891Z",
        },
        {
          id: 4998374693826,
          name: "Billie",
          surname: "Guthrie",
          parentId: 1555796128163,
          work: "Skomorokh",
          birthDate: "1853-11-10T14:06:54.037Z",
        },
        {
          id: 95132218987,
          name: "Gertrude",
          surname: "Clark",
          parentId: 2324519652998,
          work: "Unemployed",
          birthDate: "1852-12-22T20:12:13.237Z",
        },
      ],
    },
    {
      state: "hidden",
      headers: [
        {
          label: "id",
          text: "ID",
        },
        {
          label: "name",
          text: "Name",
        },
        {
          label: "surname",
          text: "Surname",
        },
        {
          label: "parentId",
          text: "Parent Id",
        },
        {
          label: "work",
          text: "Work",
        },
        {
          label: "birthDate",
          text: "Birth Date",
        },
      ],
      data: [
        {
          id: 7209449538085,
          name: "Tabitha",
          surname: "Terry",
          parentId: 6998520522169,
          work: "Computer repair technician",
          birthDate: "1853-04-10T01:23:16.181Z",
        },
        {
          id: 4132538644996,
          name: "Grace",
          surname: "MacTavish",
          parentId: 6840142476821,
          work: "Retired",
          birthDate: "1854-04-03T08:51:19.825Z",
        },
        {
          id: 778493423064,
          name: "Bailey",
          surname: "Byram",
          parentId: 7137102781494,
          work: "Occupational Therapist- Neonatal/ Pediatric",
          birthDate: "1852-08-13T18:07:57.408Z",
        },
        {
          id: 510141747289,
          name: "Sherman",
          surname: "Joseph",
          parentId: 602149579197,
          work: "work from home",
          birthDate: "1854-12-12T05:48:31.806Z",
        },
        {
          id: 5513277402976,
          name: "Ryder",
          surname: "Watrous",
          parentId: 7435302183884,
          work: "Welder",
          birthDate: "1854-08-18T04:11:04.736Z",
        },
        {
          id: 1032906540606,
          name: "Phoenix",
          surname: "Netter",
          parentId: 3204642808212,
          work: "Unemployed",
          birthDate: "1854-07-19T07:53:58.843Z",
        },
        {
          id: 343574032284,
          name: "Tonya",
          surname: "Carpenter",
          parentId: 3709985684199,
          work: "Pulmonologist",
          birthDate: "1852-04-20T12:44:08.362Z",
        },
        {
          id: 9497014533965,
          name: "Coral",
          surname: "Hoskins",
          parentId: 3497153671269,
          work: "Unemployed",
          birthDate: "1854-12-01T22:08:59.891Z",
        },
        {
          id: 4998374693826,
          name: "Billie",
          surname: "Guthrie",
          parentId: 1555796128163,
          work: "Skomorokh",
          birthDate: "1853-11-10T14:06:54.037Z",
        },
        {
          id: 95132218987,
          name: "Gertrude",
          surname: "Clark",
          parentId: 2324519652998,
          work: "Unemployed",
          birthDate: "1852-12-22T20:12:13.237Z",
        },
        {
          id: 4353606351491,
          name: "Corinna",
          surname: "Powell",
          parentId: 6303270085856,
          work: "Business analyst",
          birthDate: "1853-05-13T14:00:27.525Z",
        },
        {
          id: 9821977853501,
          name: "Alexander",
          surname: "Rowlands",
          parentId: 5281151854805,
          work: "work from home",
          birthDate: "1852-07-29T02:34:26.818Z",
        },
        {
          id: 1789259068865,
          name: "Khloe",
          surname: "Allsebrook",
          parentId: 9085712911231,
          work: "Internet celebrity",
          birthDate: "1853-10-10T01:28:17.141Z",
        },
        {
          id: 1547071460137,
          name: "Sky",
          surname: "Hyde",
          parentId: 3932330547777,
          work: "Retired",
          birthDate: "1854-11-03T05:06:37.477Z",
        },
        {
          id: 8054019194308,
          name: "Niles",
          surname: "Dudley",
          parentId: 9487606369042,
          work: "Porter",
          birthDate: "1852-09-01T05:46:03.040Z",
        },
        {
          id: 6759490924297,
          name: "Valda",
          surname: "Bye",
          parentId: 5146431233541,
          work: "Management",
          birthDate: "1853-09-29T00:33:43.968Z",
        },
        {
          id: 6625148457816,
          name: "Keaton",
          surname: "Boothe",
          parentId: 4935663844945,
          work: "Mental Health Counselor",
          birthDate: "1854-10-25T16:56:16.488Z",
        },
        {
          id: 5968154253225,
          name: "Gill",
          surname: "Voyles",
          parentId: 1358001926693,
          work: "Ophthalmologist",
          birthDate: "1853-09-13T06:48:43.632Z",
        },
        {
          id: 7963337332727,
          name: "Josiah",
          surname: "Engleman",
          parentId: 4661422144081,
          work: "Unemployed",
          birthDate: "1854-05-31T14:12:01.180Z",
        },
        {
          id: 7276643575609,
          name: "Luca",
          surname: "Alderman",
          parentId: 1257836499862,
          work: "Unemployed",
          birthDate: "1852-07-04T12:18:59.130Z",
        },
        {
          id: 4670743239553,
          name: "Kathleen",
          surname: "Walle",
          parentId: 4441682230999,
          work: "Computer scientist",
          birthDate: "1854-08-22T11:02:53.945Z",
        },
        {
          id: 7400518637533,
          name: "Deacon",
          surname: "Humpherys",
          parentId: 1446747090804,
          work: "Conservation officer",
          birthDate: "1854-06-07T15:31:11.006Z",
        },
        {
          id: 6500156651299,
          name: "Carina",
          parentId: 5968154253225,
          surname: "Voyles",
          work: "Chiropodist",
          birthDate: "1867-02-15T16:59:13.152Z",
        },
        {
          id: 1706294044283,
          name: "Tucker",
          parentId: 7963337332727,
          surname: "Engleman",
          work: "Podiatrist",
          birthDate: "1866-12-09T07:32:17.900Z",
        },
        {
          id: 3173442171339,
          name: "Clarissa",
          surname: "Harvie",
          parentId: 8355293899833,
          work: "Botanist",
          birthDate: "1853-03-29T17:49:36.408Z",
        },
        {
          id: 5788750055334,
          name: "Melina",
          parentId: 6500156651299,
          surname: "Voyles",
          work: "Welder",
          birthDate: "1882-08-16T00:50:47.934Z",
        },
        {
          id: 8843316769405,
          name: "Keith",
          surname: "Ludington",
          parentId: 6356556019596,
          work: "Usher",
          birthDate: "1852-06-15T06:27:32.233Z",
        },
        {
          id: 4207038883417,
          name: "Aaliyah",
          surname: "Woodville",
          parentId: 5819329552655,
          work: "Scop",
          birthDate: "1854-10-08T02:36:29.656Z",
        },
        {
          id: 8313555968957,
          name: "Harper",
          surname: "Allcock",
          parentId: 7731940327551,
          work: "Songwriter",
          birthDate: "1853-05-09T23:05:40.195Z",
        },
        {
          id: 8321384691545,
          name: "Johnny",
          parentId: 778493423064,
          surname: "Byram",
          work: "Copy editor",
          birthDate: "1873-12-17T06:16:58.798Z",
        },
        {
          id: 8774024011461,
          name: "Jody",
          parentId: 4132538644996,
          surname: "MacTavish",
          work: "Graphic designer",
          birthDate: "1872-08-31T01:04:39.456Z",
        },
        {
          id: 3306066401344,
          name: "Mercedes",
          surname: "Roberts",
          parentId: 6748854838600,
          work: "Feller",
          birthDate: "1852-05-10T11:58:05.415Z",
        },
        {
          id: 6496588012690,
          name: "Renee",
          parentId: 8054019194308,
          surname: "Dudley",
          work: "Plumber",
          birthDate: "1873-12-17T21:54:18.411Z",
        },
        {
          id: 2454674611066,
          name: "Jill",
          parentId: 6759490924297,
          surname: "Bye",
          work: "Dermatology Physician Assistant",
          birthDate: "1865-03-20T17:31:14.827Z",
        },
        {
          id: 8810365866300,
          name: "Townsend",
          parentId: 6496588012690,
          surname: "Dudley",
          work: "Psychiatric Nurse Practitioner",
          birthDate: "1885-09-06T14:23:00.439Z",
        },
        {
          id: 1971028749432,
          name: "George",
          surname: "Georgeson",
          parentId: 3375820364841,
          work: "Director",
          birthDate: "1854-10-26T04:21:32.595Z",
        },
        {
          id: 1113599419684,
          name: "Jess",
          surname: "Summers",
          parentId: 8197445224794,
          work: "Showrunner",
          birthDate: "1853-06-20T11:49:42.822Z",
        },
        {
          id: 260692577513,
          name: "Salma",
          surname: "Bagshaw",
          parentId: 8646582409037,
          work: "Technical director",
          birthDate: "1854-08-02T11:08:13.512Z",
        },
        {
          id: 4717646566698,
          name: "Jakob",
          parentId: 7400518637533,
          surname: "Humpherys",
          work: "Draper",
          birthDate: "1875-09-29T02:59:25.272Z",
        },
        {
          id: 2812851588162,
          name: "Ezekiel",
          surname: "Glanton",
          parentId: 8694260373371,
          work: "Retired",
          birthDate: "1853-07-25T22:30:11.069Z",
        },
        {
          id: 546554428930,
          name: "Darrin",
          parentId: 7963337332727,
          surname: "Engleman",
          work: "Healthcare science",
          birthDate: "1867-11-05T12:21:08.349Z",
        },
        {
          id: 5568159710759,
          name: "Kirsten",
          parentId: 6496588012690,
          surname: "Dudley",
          work: "work from home",
          birthDate: "1890-06-13T12:43:09.597Z",
        },
        {
          id: 3385269771452,
          name: "Emerald",
          parentId: 6496588012690,
          surname: "Dudley",
          work: "Retired",
          birthDate: "1892-05-01T07:40:24.011Z",
        },
        {
          id: 8533172021814,
          name: "Andre",
          parentId: 8321384691545,
          surname: "Byram",
          work: "Retired",
          birthDate: "1892-02-25T01:12:38.146Z",
        },
        {
          id: 4710524419131,
          name: "Patty",
          surname: "Dick",
          parentId: 1760988033690,
          work: "Technical writer",
          birthDate: "1853-01-11T14:35:24.298Z",
        },
        {
          id: 1805461552938,
          name: "Elisha",
          surname: "Bradford",
          parentId: 8622160581630,
          work: "Theatre practitioner",
          birthDate: "1853-06-30T19:11:12.105Z",
        },
        {
          id: 6542853113042,
          name: "Zoe",
          parentId: 3173442171339,
          surname: "Harvie",
          work: "Showgirl",
          birthDate: "1870-12-08T18:18:09.844Z",
        },
        {
          id: 1718991242108,
          name: "Drew",
          surname: "Ashby",
          parentId: 3010550761310,
          work: "Retired",
          birthDate: "1854-10-23T05:29:23.476Z",
        },
        {
          id: 1334633156399,
          name: "Marie",
          surname: "Tibbets",
          parentId: 2575362966990,
          work: "Geotechnical Engineer",
          birthDate: "1854-09-01T14:29:47.329Z",
        },
        {
          id: 5668998711075,
          name: "Dulcie",
          surname: "Derwin",
          parentId: 7518120488089,
          work: "Emcee",
          birthDate: "1854-03-09T04:56:18.697Z",
        },
        {
          id: 248786146102,
          name: "Shania",
          surname: "Fleetwood",
          parentId: 7804160535710,
          work: "Station",
          birthDate: "1854-10-06T02:01:08.206Z",
        },
        {
          id: 9525762609317,
          name: "Ana",
          parentId: 7209449538085,
          surname: "Terry",
          work: "Manager (Guard)",
          birthDate: "1867-07-30T11:59:23.739Z",
        },
        {
          id: 934688923249,
          name: "Alicia",
          parentId: 6542853113042,
          surname: "Harvie",
          work: "Blogger",
          birthDate: "1890-10-06T17:26:42.673Z",
        },
        {
          id: 7306715236916,
          name: "Petula",
          surname: "Newey",
          parentId: 1042642003017,
          work: "Geoff",
          birthDate: "1852-10-04T08:37:28.785Z",
        },
        {
          id: 8234536999381,
          name: "Mary",
          surname: "Rose",
          parentId: 5386302345101,
          work: "Signal maintainer",
          birthDate: "1854-02-15T23:14:32.174Z",
        },
        {
          id: 7494359933717,
          name: "Brittany",
          parentId: 1805461552938,
          surname: "Bradford",
          work: "Unemployed",
          birthDate: "1875-01-06T09:30:49.999Z",
        },
        {
          id: 7049262735491,
          name: "Juniper",
          surname: "Marks",
          parentId: 9127368958939,
          work: "work from home",
          birthDate: "1854-11-26T11:05:44.683Z",
        },
        {
          id: 7781822521224,
          name: "Edris",
          surname: "Godwin",
          parentId: 6016143008277,
          work: "work from home",
          birthDate: "1854-09-13T08:22:46.191Z",
        },
        {
          id: 9078112227633,
          name: "Kaitlin",
          surname: "Minogue",
          parentId: 95176825076,
          work: "Clinical pharmaceutical scientist",
          birthDate: "1852-05-08T21:59:27.773Z",
        },
        {
          id: 3055221397713,
          name: "Lauretta",
          parentId: 6759490924297,
          surname: "Bye",
          work: "Track inspector",
          birthDate: "1867-05-21T06:07:21.273Z",
        },
        {
          id: 3794107972026,
          name: "Dorothy",
          surname: "Bostick",
          parentId: 6850128149597,
          work: "Go-go dancer",
          birthDate: "1853-03-06T19:01:31.143Z",
        },
        {
          id: 1698494645377,
          name: "Cameron",
          surname: "Torney",
          parentId: 770004791023,
          work: "Advertising designer",
          birthDate: "1854-07-17T07:16:12.429Z",
        },
        {
          id: 841895938898,
          name: "Shepherd",
          parentId: 4717646566698,
          surname: "Humpherys",
          work: "Quilter",
          birthDate: "1897-02-23T22:01:59.520Z",
        },
        {
          id: 7914083691988,
          name: "Alisha",
          surname: "Wind",
          parentId: 1656884957449,
          work: "Veterinarian",
          birthDate: "1853-04-04T07:49:55.453Z",
        },
        {
          id: 5015337941343,
          name: "Agnes",
          parentId: 9821977853501,
          surname: "Rowlands",
          work: "Rhapsode",
          birthDate: "1865-09-14T16:07:21.238Z",
        },
        {
          id: 6498601438355,
          name: "Harvard",
          parentId: 1971028749432,
          surname: "Georgeson",
          work: "Retired",
          birthDate: "1874-02-03T05:44:32.483Z",
        },
        {
          id: 6162073883494,
          name: "Lizzie",
          surname: "Allitt",
          parentId: 7443156411879,
          work: "work from home",
          birthDate: "1854-02-09T14:41:55.210Z",
        },
        {
          id: 4027876312592,
          name: "Samuel",
          parentId: 8843316769405,
          surname: "Ludington",
          work: "Neuroradiographer",
          birthDate: "1864-11-13T01:39:02.494Z",
        },
        {
          id: 6910084039563,
          name: "Layla",
          parentId: 95132218987,
          surname: "Clark",
          work: "CT Radiographer",
          birthDate: "1868-09-02T07:10:46.829Z",
        },
        {
          id: 2583927007530,
          name: "Darby",
          surname: "Yeakel",
          parentId: 1323435182904,
          work: "Data designer",
          birthDate: "1853-05-12T16:14:07.161Z",
        },
        {
          id: 7448530790803,
          name: "Winnifred",
          surname: "Rykener",
          parentId: 9181202451521,
          work: "Unemployed",
          birthDate: "1852-03-20T06:48:07.162Z",
        },
        {
          id: 4842667119782,
          name: "Lacey",
          parentId: 7400518637533,
          surname: "Humpherys",
          work: "Unemployed",
          birthDate: "1875-03-04T17:56:15.949Z",
        },
        {
          id: 3926090190617,
          name: "Beverley",
          surname: "McHatton",
          parentId: 8769830982857,
          work: "Field warden",
          birthDate: "1853-06-02T04:00:57.288Z",
        },
        {
          id: 5107646185720,
          name: "Cassidy",
          parentId: 7276643575609,
          surname: "Alderman",
          work: "Retired",
          birthDate: "1863-12-22T05:38:41.764Z",
        },
        {
          id: 6617379016460,
          name: "Jeannie",
          surname: "Artley",
          parentId: 5730519222203,
          work: "Psychologist",
          birthDate: "1854-11-06T11:20:41.234Z",
        },
        {
          id: 5415904134291,
          name: "Shannon",
          parentId: 5513277402976,
          surname: "Watrous",
          work: "Artistic director",
          birthDate: "1872-02-22T13:25:42.485Z",
        },
        {
          id: 8625554360699,
          name: "Margot",
          surname: "Glidewell",
          parentId: 5710615384493,
          work: "Rhapsode",
          birthDate: "1854-10-31T13:03:27.754Z",
        },
        {
          id: 2167634099186,
          name: "Annie",
          parentId: 9497014533965,
          surname: "Hoskins",
          work: "Spotlight Operator",
          birthDate: "1866-11-19T12:52:54.706Z",
        },
        {
          id: 2969518168386,
          name: "Velma",
          parentId: 7209449538085,
          surname: "Terry",
          work: "Web developer",
          birthDate: "1871-10-28T11:08:07.215Z",
        },
        {
          id: 9376340620106,
          name: "Cheryl",
          parentId: 1706294044283,
          surname: "Engleman",
          work: "Stunt performer",
          birthDate: "1877-10-11T10:56:39.191Z",
        },
        {
          id: 4611179134961,
          name: "Mayola",
          surname: "Whyte",
          parentId: 2106785096820,
          work: "Painters",
          birthDate: "1854-12-18T21:34:21.340Z",
        },
        {
          id: 3330893717600,
          name: "Imogen",
          surname: "Brinkley",
          parentId: 4855829489899,
          work: "Nephrology Physician Assistant",
          birthDate: "1853-02-02T11:36:44.244Z",
        },
        {
          id: 2322780495725,
          name: "Gillian",
          parentId: 8313555968957,
          surname: "Allcock",
          work: "Rhapsode",
          birthDate: "1871-08-02T14:41:44.723Z",
        },
        {
          id: 9096773496327,
          name: "Crossley",
          surname: "Oatway",
          parentId: 4983996020215,
          work: "Flagman",
          birthDate: "1854-09-04T11:14:16.967Z",
        },
        {
          id: 7912768369102,
          name: "Jack",
          surname: "Cortright",
          parentId: 1954893391139,
          work: "Racing driver",
          birthDate: "1852-08-02T03:15:25.294Z",
        },
        {
          id: 4936706920188,
          name: "Marilyn",
          parentId: 1805461552938,
          surname: "Bradford",
          work: "Park ranger",
          birthDate: "1868-03-15T10:44:36.661Z",
        },
        {
          id: 4507151706136,
          name: "Malcolm",
          surname: "Fish",
          parentId: 10892055752,
          work: "Otorhinolaryngology Physician assistant",
          birthDate: "1852-09-21T09:57:38.875Z",
        },
        {
          id: 1002471008138,
          name: "Sapphire",
          surname: "Plumb",
          parentId: 7581067886471,
          work: "Physical Therapist",
          birthDate: "1853-10-01T07:37:10.197Z",
        },
        {
          id: 935177490762,
          name: "Cracroft",
          parentId: 4710524419131,
          surname: "Dick",
          work: "Emergency medical technician",
          birthDate: "1874-06-28T07:03:04.205Z",
        },
        {
          id: 3214614421553,
          name: "Sparrow",
          surname: "Ashbridge",
          parentId: 957660638347,
          work: "Deputy Station Master",
          birthDate: "1852-04-10T04:05:16.806Z",
        },
        {
          id: 7486640594543,
          name: "Krista",
          surname: "Pancake",
          parentId: 7378652821449,
          work: "Plumber",
          birthDate: "1854-08-23T21:50:03.378Z",
        },
        {
          id: 4208092032684,
          name: "Jolie",
          surname: "Williamson",
          parentId: 542240779474,
          work: "Stage crew",
          birthDate: "1853-10-29T00:38:32.373Z",
        },
        {
          id: 265753551687,
          name: "Holbrook",
          parentId: 4936706920188,
          surname: "Bradford",
          work: "Hack writer",
          birthDate: "1884-05-07T02:08:54.196Z",
        },
        {
          id: 8299001953232,
          name: "Robert",
          parentId: 3173442171339,
          surname: "Harvie",
          work: "Ticketing agent",
          birthDate: "1873-06-05T02:00:54.119Z",
        },
        {
          id: 4569395503128,
          name: "Heather",
          surname: "Exton",
          parentId: 9258857749445,
          work: "Millwright",
          birthDate: "1854-07-30T13:43:50.734Z",
        },
        {
          id: 3805806644419,
          name: "Avis",
          surname: "Waddington",
          parentId: 7607565215691,
          work: "Soloist",
          birthDate: "1853-05-16T10:13:10.174Z",
        },
        {
          id: 215914970248,
          name: "Lanna",
          parentId: 3926090190617,
          surname: "McHatton",
          work: "Poet",
          birthDate: "1871-10-23T19:08:06.184Z",
        },
        {
          id: 405274833240,
          name: "Demetria",
          parentId: 4670743239553,
          surname: "Walle",
          work: "Signalman",
          birthDate: "1874-07-17T12:36:59.100Z",
        },
        {
          id: 2703780723460,
          name: "Grayson",
          parentId: 7914083691988,
          surname: "Wind",
          work: "Bylaw enforcement officer",
          birthDate: "1866-08-17T16:34:36.854Z",
        },
        {
          id: 2649091306594,
          name: "Kathryn",
          parentId: 8313555968957,
          surname: "Allcock",
          work: "Station",
          birthDate: "1874-09-20T04:49:58.207Z",
        },
      ],
    },
  ],
};
ExcelTable.generateExcel(data).then((res) => {
  var url = window.URL.createObjectURL(res);
  window.location.assign(url);
  return res;
});
result image

ex

Header Option

We offer specific header options for Excel headers. The header is a mandatory component, so the withoutHeader option cannot be used to omit it. The headerHeight option is employed to determine the height of the header row. Additionally, we provide the headerStyleKey property, which specifies the most commonly used style for each cell (its value corresponds to the style ID; detailed functionality is explained in the Styles section).

Each header cell is endowed with properties beyond the label and text. The size property defines the width of the column, while the formula property applies a formula to all rows (excluding the header) within the column, ultimately affecting the final cell in that column.

Display code
function e() {
  const t = { c1: "08D9D6", c2: "252A34", c3: "FF2E63", c4: "EAEAEA" };
  return {
    imageFullName: "ex3.PNG",
    url: "https://colorhunt.co/palette/08d9d6252a34ff2e63eaeaea",
    colorPalette: t,
    data: {
      creator: "mr",
      styles: {
        headerStyle: {
          fg: t.c2,
          fontFamily: "Times New Roman",
          fontColor: t.c4,
          size: 20,
        },
        formulaStyle: {
          fg: t.c1,
          fontFamily: "Times New Roman",
          fontColor: t.c3,
          size: 15,
        },
      },
      sheet: [
        {
          headerStyleKey: "headerStyle",
          headerHeight: 30,
          headers: [
            {
              label: "id",
              text: "ID",
              size: 20,
              formula: { type: "COUNT", styleId: "formulaStyle" },
            },
            { label: "name", text: "Name", size: 20 },
            { label: "surname", text: "Surname", size: 20 },
            { label: "parentId", text: "Parent Id", size: 20 },
            { label: "work", text: "Work", size: 20 },
            { label: "birthDate", text: "Birth Date", size: 30 },
          ],
          data: Fr.slice(0, 10),
        },
        {
          withoutHeader: !0,
          headerStyleKey: "headerStyle",
          headers: [
            {
              label: "id",
              text: "ID",
              size: 70,
              formula: { type: "COUNT", styleId: "formulaStyle" },
            },
            { label: "name", text: "Name", size: 12 },
            { label: "surname", text: "Surname", size: 70 },
            { label: "parentId", text: "Parent Id", size: 100 },
            { label: "work", text: "Work", size: 100 },
            { label: "birthDate", text: "Birth Date", size: 100 },
          ],
          data: Fr.slice(0, 10),
        },
      ],
    },
  };
}
const { data } = e();
ExcelTable.generateExcel(data);
result image

ex

Formula Option

We provide two distinct methods for defining formulas: customization and column type. In the customization approach, if you employ a cell containing data that is used within the formula, the formula will display an instance of the formula. When using the customization type, it's important to specify the formula type, which can be any of the following: AVERAGE, SUM, COUNT, MAX, or MIN.

Display code
const colorPalette = {
  c1: "2B2E4A",
  c2: "E84545",
  c3: "903749",
  c4: "53354A",
};
const data = {
  creator: "mr",
  styles: {
    headerStyle: {
      fg: "2B2E4A",
      fontFamily: "Times New Roman",
      fontColor: "E84545",
    },
    customFormulaStyle: {
      fg: "E84545",
      fontFamily: "Times New Roman",
      fontColor: "2B2E4A",
      size: 15,
      border: {
        full: {
          color: "53354A",
          style: "dashDot",
        },
      },
    },
    formulaStyle: {
      fg: "2B2E4A",
      fontFamily: "Times New Roman",
      fontColor: "E84545",
      size: 15,
      border: {
        full: {
          color: "903749",
          style: "medium",
        },
      },
    },
  },
  sheet: [
    {
      formula: {
        A8: {
          type: "SUM",
          start: "B2",
          end: "D3",
          styleId: "customFormulaStyle",
        },
        B8: {
          type: "AVERAGE",
          start: "A2",
          end: "F6",
          styleId: "customFormulaStyle",
        },
        C8: {
          type: "SUM",
          start: "A2",
          end: "F6",
          styleId: "customFormulaStyle",
        },
        D8: {
          type: "MAX",
          start: "A2",
          end: "F6",
          styleId: "customFormulaStyle",
        },
        E8: {
          type: "MIN",
          start: "A2",
          end: "F6",
          styleId: "customFormulaStyle",
        },
        F8: {
          type: "COUNT",
          start: "A2",
          end: "F6",
          styleId: "customFormulaStyle",
        },
      },
      headerStyleKey: "headerStyle",
      headers: [
        {
          label: "Date",
          text: "Date",
          formula: {
            styleId: "formulaStyle",
            type: "COUNT",
          },
        },
        {
          label: "Column 1",
          text: "Column 1",
          formula: {
            styleId: "formulaStyle",
            type: "AVERAGE",
          },
        },
        {
          label: "Column 2",
          text: "Column 2",
          formula: {
            styleId: "formulaStyle",
            type: "SUM",
          },
        },
        {
          label: "Column 3",
          text: "Column 3",
          formula: {
            styleId: "formulaStyle",
            type: "MAX",
          },
        },
        {
          label: "Column 4",
          text: "Column 4",
          formula: {
            styleId: "formulaStyle",
            type: "MIN",
          },
        },
        {
          label: "Column 5",
          text: "Column 5",
          formula: {
            styleId: "formulaStyle",
            type: "COUNT",
          },
        },
      ],
      data: [
        {
          Date: "2023-08-01",
          "Column 1": 5,
          "Column 2": 10,
          "Column 3": 15,
          "Column 4": 20,
          "Column 5": 25,
        },
        {
          Date: "2023-08-02",
          "Column 1": 7,
          "Column 2": 14,
          "Column 3": 21,
          "Column 4": 28,
          "Column 5": 35,
        },
        {
          Date: "2023-08-03",
          "Column 1": 3,
          "Column 2": 6,
          "Column 3": 9,
          "Column 4": 12,
          "Column 5": 15,
        },
        {
          Date: "2023-08-04",
          "Column 1": 12,
          "Column 2": 24,
          "Column 3": 36,
          "Column 4": 48,
          "Column 5": 60,
        },
        {
          Date: "2023-08-05",
          "Column 1": 8,
          "Column 2": 16,
          "Column 3": 24,
          "Column 4": 32,
          "Column 5": 40,
        },
      ],
    },
  ],
};
ExcelTable.generateExcel(data);
result image

ex

Styles & Format Options

In the library, styles are defined with an ID that represents the desired style. This ID is then used to apply the corresponding style to cells. Each cell is associated with only one style. These styles encompass various attributes such as borders, alignment, text color, font family, font size, background, and bold, among others.

The format property is a distinct style attribute. Unlike other styles, the format is predefined and cannot be customized.

Display code
function e() {
  const t = { c1: "2C3639", c2: "3F4E4F", c3: "A27B5C", c4: "DCD7C9" },
    n = { fg: t.c2, fontFamily: "Times New Roman", fontColor: t.c4 },
    a = { fg: t.c4, fontFamily: "Times New Roman", fontColor: t.c2 };
  return {
    url: "https://colorhunt.co/palette/ffcfdffefdcae0f9b5a5dee5",
    imageFullName: "ex5.PNG",
    colorPalette: t,
    data: {
      creator: "mr",
      styles: {
        Date: { ...n, format: "short_date" },
        Time: { ...n, format: "time" },
        Percentage: { ...n, format: "percentage" },
        Float: { ...n, format: "float_2", alignment: { horizontal: "left" } },
        Fraction: { ...n, format: "fraction" },
        "Long Number Column 1": {
          ...n,
          format: "dollar_2",
          alignment: { indent: 3, rtl: !0, horizontal: "left" },
        },
        "Long Number Column 2": {
          ...n,
          format: "num_sep",
          alignment: { ltr: !0, horizontal: "left" },
        },
        headerStyle: { ...a },
      },
      sheet: [
        {
          styleCellCondition(l, r, o, i, s, u) {
            return s
              ? "headerStyle"
              : o == 0
              ? "Date"
              : o == 1
              ? "Time"
              : o == 2
              ? "Percentage"
              : o == 3
              ? "Float"
              : o == 4
              ? "Fraction"
              : o == 5
              ? "Long Number Column 1"
              : "Long Number Column 2";
          },
          headers: [
            { label: "Date", text: "Date" },
            { label: "Time", text: "Time" },
            { label: "Percentage", text: "Percentage" },
            { label: "Float", text: "Float" },
            { label: "Fraction", text: "Fraction" },
            {
              label: "Long Number Column 1",
              text: "Long Number Column 1",
              size: 50,
            },
            {
              label: "Long Number Column 2",
              text: "Long Number Column 2",
              size: 50,
            },
          ],
          data: [
            {
              Date: "2023-08-01",
              Time: "09:00 AM",
              Percentage: 0.7525,
              Float: 0.7525,
              Fraction: "1/4",
              "Long Number Column 1": 0x7048860ddf79,
              "Long Number Column 2": 987654321098765,
            },
            {
              Date: "2023-08-02",
              Time: "02:30 PM",
              Percentage: 0.4275,
              Float: 0.4275,
              Fraction: "3/8",
              "Long Number Column 1": 456789012345678,
              "Long Number Column 2": 876543210987654,
            },
            {
              Date: "2023-08-03",
              Time: "10:45 AM",
              Percentage: 0.955,
              Float: 0.955,
              Fraction: "5/6",
              "Long Number Column 1": 789012345678901,
              "Long Number Column 2": 765432109876543,
            },
            {
              Date: "2023-08-04",
              Time: "04:15 PM",
              Percentage: 0.2875,
              Float: 0.2875,
              Fraction: "2/7",
              "Long Number Column 1": 0x70472c442cb1,
              "Long Number Column 2": 654321098765432,
            },
            {
              Date: "2023-08-05",
              Time: "08:20 AM",
              Percentage: 0.6,
              Float: 0.6,
              Fraction: "4/5",
              "Long Number Column 1": 543210987654321,
              "Long Number Column 2": 543210987654321,
            },
          ],
        },
      ],
    },
  };
}
const { data } = e();
ExcelTable.generateExcel(data);
result image

ex

Merging Cells Options

We offer options for merging rows of cells together. Additionally, we provide a function-based approach to facilitate cell merging.

Display code
function e() {
  const t = { c1: "DBE2EF", c2: "112D4E", c4: "F9F7F7" },
    n = {
      fg: t.c2,
      fontFamily: "Times New Roman",
      fontColor: t.c4,
      border: { full: { style: "medium", color: t.c1 } },
      alignment: { horizontal: "left", vertical: "top" },
    },
    a = { fg: t.c4, fontFamily: "Times New Roman", fontColor: t.c2 },
    l = [];
  let r = !1;
  return {
    url: "https://colorhunt.co/palette/f9f7f7dbe2ef3f72af112d4e",
    imageFullName: "ex6.PNG",
    colorPalette: t,
    data: {
      creator: "mr",
      styles: {
        Date: { ...n, format: "short_date" },
        Time: { ...n, format: "time" },
        Percentage: { ...n, format: "percentage" },
        Float: { ...n, format: "float_2" },
        Fraction: { ...n, format: "fraction" },
        "Long Number Column 1": { ...n, format: "dollar_2" },
        "Long Number Column 2": { ...n, format: "num_sep" },
        headerStyle: { ...a },
      },
      sheet: [
        {
          mergeRowDataCondition(o, i, s, u) {
            return u
              ? !1
              : r
              ? l[i] == o
                ? !0
                : ((l[i] = o), !1)
              : ((r = !0), (l[i] = o), !0);
          },
          styleCellCondition(o, i, s, u, c, m) {
            return c
              ? "headerStyle"
              : s == 0
              ? "Date"
              : s == 1
              ? "Time"
              : s == 2
              ? "Percentage"
              : s == 3
              ? "Float"
              : s == 4
              ? "Fraction"
              : s == 5
              ? "Long Number Column 1"
              : "Long Number Column 2";
          },
          headers: [
            { label: "Date", text: "Date" },
            { label: "Time", text: "Time" },
            { label: "Percentage", text: "Percentage" },
            { label: "Float", text: "Float" },
            { label: "Fraction", text: "Fraction" },
            {
              label: "Long Number Column 1",
              text: "Long Number Column 1",
              size: 50,
            },
            {
              label: "Long Number Column 2",
              text: "Long Number Column 2",
              size: 50,
            },
          ],
          data: [
            {
              Date: "2023-08-01",
              Time: "09:00 AM",
              Percentage: 0.7525,
              Float: 0.7525,
              Fraction: "1/4",
              "Long Number Column 1": 0x7048860ddf79,
              "Long Number Column 2": 987654321098765,
            },
            {
              Date: "2023-08-01",
              Time: "02:30 PM",
              Percentage: 0.4275,
              Float: 0.4275,
              Fraction: "3/8",
              "Long Number Column 1": 0x7048860ddf79,
              "Long Number Column 2": 876543210987654,
            },
            {
              Date: "2023-08-03",
              Time: "10:45 AM",
              Percentage: 0.955,
              Float: 0.955,
              Fraction: "5/6",
              "Long Number Column 1": 789012345678901,
              "Long Number Column 2": 765432109876543,
            },
            {
              Date: "2023-08-04",
              Time: "04:15 PM",
              Percentage: 0.2875,
              Float: 0.2875,
              Fraction: "2/7",
              "Long Number Column 1": 0x70472c442cb1,
              "Long Number Column 2": 654321098765432,
            },
            {
              Date: "2023-08-05",
              Time: "08:20 AM",
              Percentage: 0.6,
              Float: 0.6,
              Fraction: "4/5",
              "Long Number Column 1": 543210987654321,
              "Long Number Column 2": 543210987654321,
            },
            {
              Date: "2023-08-05",
              Time: "08:20 AM",
              Percentage: 0.6,
              Float: 0.6,
              Fraction: "4/5",
              "Long Number Column 1": 543210987654321,
              "Long Number Column 2": 543210987654321,
            },
            {
              Date: "2023-08-05",
              Time: "08:20 AM",
              Percentage: 0.6,
              Float: 0.61,
              Fraction: "4/5",
              "Long Number Column 1": 543210987654321,
              "Long Number Column 2": 543210987654321,
            },
          ],
        },
      ],
    },
  };
}
const { data } = e();
ExcelTable.generateExcel(data);
result image

ex

Group Rows Options

With this library, you can group rows together using two properties added to the data: outlineLevel and hidden. The outlineLevel represents the grouping level, while hidden represents whether the default state is collapsed or not. The key of this property is changeable, so in case of a conflict with your data, you have the flexibility to modify it. We will discuss how to change the key in the next section.

Display code
function e() {
  const t = { c4: "FCD1D1", c2: "AEE1E1" },
    n = {
      fg: t.c2,
      fontFamily: "Times New Roman",
      fontColor: "112D4E",
      alignment: { horizontal: "left", vertical: "top" },
    },
    a = { fg: t.c4, fontFamily: "Times New Roman", fontColor: "112D4E" };
  return {
    imageFullName: "ex7.PNG",
    colorPalette: t,
    url: "https://colorhunt.co/palette/fcd1d1ece2e1d3e0dcaee1e1",
    data: {
      creator: "mr",
      styles: { rowStyle: { ...n }, headerStyle: { ...a } },
      sheet: [
        {
          styleCellCondition(l, r, o, i, s, u) {
            return s ? "headerStyle" : "rowStyle";
          },
          headers: [
            { label: "ID", text: "ID" },
            { label: "Name", text: "Name" },
            { label: "Column 1", text: "Column 1" },
            { label: "Column 2", text: "Column 2" },
            { label: "Column 3", text: "Column 3" },
            { label: "Column 4", text: "Column 4" },
            { label: "Column 5", text: "Column 5" },
          ],
          data: [
            {
              ID: 1,
              Name: "Category A",
              "Column 1": 10,
              "Column 2": 20,
              "Column 3": 30,
              "Column 4": 40,
              "Column 5": 50,
              outlineLevel: 1,
            },
            {
              ID: 2,
              Name: "Item 1",
              "Column 1": 5,
              "Column 2": 10,
              "Column 3": 15,
              "Column 4": 20,
              "Column 5": 25,
              outlineLevel: 2,
            },
            {
              ID: 3,
              Name: "Item 2",
              "Column 1": 3,
              "Column 2": 6,
              "Column 3": 9,
              "Column 4": 12,
              "Column 5": 15,
              outlineLevel: 2,
            },
            {
              ID: 4,
              Name: "Item 3",
              "Column 1": 2,
              "Column 2": 4,
              "Column 3": 6,
              "Column 4": 8,
              "Column 5": 10,
              outlineLevel: 2,
            },
            {
              ID: 5,
              Name: "Category B",
              "Column 1": 20,
              "Column 2": 40,
              "Column 3": 60,
              "Column 4": 80,
              "Column 5": 100,
              outlineLevel: 1,
            },
            {
              ID: 6,
              Name: "Item 1",
              "Column 1": 10,
              "Column 2": 20,
              "Column 3": 30,
              "Column 4": 40,
              "Column 5": 50,
              hidden: 1,
              outlineLevel: 2,
            },
            {
              ID: 7,
              Name: "Item 2",
              "Column 1": 6,
              "Column 2": 12,
              "Column 3": 18,
              "Column 4": 24,
              "Column 5": 30,
              hidden: 1,
              outlineLevel: 2,
            },
            {
              ID: 8,
              Name: "Item 3",
              "Column 1": 4,
              "Column 2": 8,
              "Column 3": 12,
              "Column 4": 16,
              "Column 5": 20,
              hidden: 1,
              outlineLevel: 2,
            },
            {
              ID: 9,
              Name: "Category C",
              "Column 1": 30,
              "Column 2": 60,
              "Column 3": 90,
              "Column 4": 120,
              "Column 5": 150,
              outlineLevel: 1,
            },
            {
              ID: 10,
              Name: "Item 1",
              "Column 1": 15,
              "Column 2": 30,
              "Column 3": 45,
              "Column 4": 60,
              "Column 5": 75,
              outlineLevel: 2,
            },
            {
              ID: 11,
              Name: "Item 2",
              "Column 1": 9,
              "Column 2": 18,
              "Column 3": 27,
              "Column 4": 36,
              "Column 5": 45,
              outlineLevel: 2,
            },
            {
              ID: 12,
              Name: "Item 3",
              "Column 1": 6,
              "Column 2": 12,
              "Column 3": 18,
              "Column 4": 24,
              "Column 5": 30,
              outlineLevel: 2,
            },
            {
              ID: 13,
              Name: "Summary",
              "Column 1": 60,
              "Column 2": 120,
              "Column 3": 180,
              "Column 4": 240,
              "Column 5": 300,
              outlineLevel: 3,
            },
          ],
        },
      ],
    },
  };
}
const { data } = e();
ExcelTable.generateExcel(data);
result image

ex

Complex Options

In the examples below, we aim to define some fun scenarios that could be useful for more complex use cases.

Adjusting Key Properties and Row Height You have the ability to change the key of reserved properties such as height, hidden, and more. Additionally, you can adjust the height of rows as needed.

Display code
function e() {
  const t = { c4: "F08A5D", c2: "F9ED69" },
    n = {
      fg: t.c2,
      fontFamily: "Times New Roman",
      fontColor: "6A2C70",
      alignment: { horizontal: "left", vertical: "center" },
    },
    a = { fg: t.c4, fontFamily: "Times New Roman", fontColor: "6A2C70" };
  return {
    imageFullName: "ex8.PNG",
    colorPalette: t,
    url: "https://colorhunt.co/palette/f9ed69f08a5db83b5e6a2c70",
    data: {
      creator: "mr",
      mapSheetDataOption: {
        hidden: "notShow",
        height: "h",
        outlineLevel: "group",
      },
      styles: { rowStyle: { ...n }, headerStyle: { ...a } },
      sheet: [
        {
          styleCellCondition(l, r, o, i, s, u) {
            return s ? "headerStyle" : "rowStyle";
          },
          headers: [
            { label: "ID", text: "ID" },
            { label: "Name", text: "Name" },
            { label: "Column 1", text: "Column 1" },
            { label: "Column 2", text: "Column 2" },
            { label: "Column 3", text: "Column 3" },
            { label: "Column 4", text: "Column 4" },
            { label: "Column 5", text: "Column 5" },
          ],
          data: [
            {
              ID: 1,
              Name: "Category A",
              "Column 1": 10,
              "Column 2": 20,
              "Column 3": 30,
              "Column 4": 40,
              "Column 5": 50,
              h: 30,
              group: 1,
            },
            {
              ID: 2,
              Name: "Item 1",
              "Column 1": 5,
              "Column 2": 10,
              "Column 3": 15,
              "Column 4": 20,
              "Column 5": 25,
              h: 30,
              group: 2,
            },
            {
              ID: 3,
              Name: "Item 2",
              "Column 1": 3,
              "Column 2": 6,
              "Column 3": 9,
              "Column 4": 12,
              "Column 5": 15,
              h: 30,
              group: 2,
            },
            {
              ID: 4,
              Name: "Item 3",
              "Column 1": 2,
              "Column 2": 4,
              "Column 3": 6,
              "Column 4": 8,
              "Column 5": 10,
              h: 30,
              group: 2,
            },
            {
              ID: 5,
              Name: "Category B",
              "Column 1": 20,
              "Column 2": 40,
              "Column 3": 60,
              "Column 4": 80,
              "Column 5": 100,
              h: 30,
              group: 1,
            },
            {
              ID: 6,
              Name: "Item 1",
              "Column 1": 10,
              "Column 2": 20,
              "Column 3": 30,
              "Column 4": 40,
              "Column 5": 50,
              notShow: 1,
              h: 30,
              group: 2,
            },
            {
              ID: 7,
              Name: "Item 2",
              "Column 1": 6,
              "Column 2": 12,
              "Column 3": 18,
              "Column 4": 24,
              "Column 5": 30,
              notShow: 1,
              h: 30,
              group: 2,
            },
            {
              ID: 8,
              Name: "Item 3",
              "Column 1": 4,
              "Column 2": 8,
              "Column 3": 12,
              "Column 4": 16,
              "Column 5": 20,
              notShow: 1,
              h: 30,
              group: 2,
            },
            {
              ID: 9,
              Name: "Category C",
              "Column 1": 30,
              "Column 2": 60,
              "Column 3": 90,
              "Column 4": 120,
              "Column 5": 150,
              h: 30,
              group: 1,
            },
            {
              ID: 10,
              Name: "Item 1",
              "Column 1": 15,
              "Column 2": 30,
              "Column 3": 45,
              "Column 4": 60,
              "Column 5": 75,
              h: 30,
              group: 2,
            },
            {
              ID: 11,
              Name: "Item 2",
              "Column 1": 9,
              "Column 2": 18,
              "Column 3": 27,
              "Column 4": 36,
              "Column 5": 45,
              h: 30,
              group: 2,
            },
            {
              ID: 12,
              Name: "Item 3",
              "Column 1": 6,
              "Column 2": 12,
              "Column 3": 18,
              "Column 4": 24,
              "Column 5": 30,
              h: 30,
              group: 2,
            },
            {
              ID: 13,
              Name: "Summary",
              "Column 1": 60,
              "Column 2": 120,
              "Column 3": 180,
              "Column 4": 240,
              "Column 5": 300,
              h: 30,
              group: 3,
            },
          ],
        },
      ],
    },
  };
}
const { data } = e();
ExcelTable.generateExcel(data);
result image

ex

Shift & Title Option

The shift feature allows you to adjust the starting point of generating an Excel file. The title option, on the other hand, is used when you want to include a title at the top of the generated file.

function generateData() {
  const colorPalette = {
    c4: "FFC7C7",
    c2: "8785A2",
  };
  const rowAlignment = {
    alignment: {
      horizontal: "left",
      vertical: "center",
    },
  };
  const rowStyle = {
    fg: colorPalette.c2,
    fontFamily: "Times New Roman",
    fontColor: "6A2C70",
    ...rowAlignment,
  };
  const headerStyle = {
    fg: colorPalette.c4,
    fontFamily: "Times New Roman",
    fontColor: "#FFFFFF",
  };
  return {
    imageFullName: "ex10.PNG",
    colorPalette,
    url: "https://colorhunt.co/palette/ffc7c7ffe2e2f6f6f68785a2",
    data: {
      creator: "mr",
      styles: {
        "c0<0.3": {
          fg: "DCD6F7",
          fontColor: "424874s",
          ...rowAlignment,
        },
        male: {
          fg: "95E1D3",
          fontColor: "252A34",
          ...rowAlignment,
        },
        female: {
          fg: "F38181",
          fontColor: "252A34",
          ...rowAlignment,
        },
        rowStyle: {
          ...rowStyle,
        },
        headerStyle: {
          ...headerStyle,
        },
      },
      sheet: [
        {
          shiftTop: 5,
          shiftLeft: 5,
          styleCellCondition(data, fullData, colIndex, rowIndex, fromHeader) {
            if (fromHeader) {
              return "headerStyle";
            } else {
              if (colIndex == 0 && data < 0.3) {
                return "c0<0.3";
              } else if (colIndex == 3) {
                if (data) {
                  return "male";
                } else {
                  return "female";
                }
              } else {
                return "rowStyle";
              }
            }
          },
          headers: [
            { label: "c1", text: "**" },
            { label: "c2", text: "++" },
            { label: "c3", text: "Name" },
            { label: "c5", text: "Gender" },
          ],
          data: [
            { c1: 0.756, c2: 150, c3: "John", c5: 1 },
            { c1: 0.238, c2: 120, c3: "Jane", c5: 0 },
            { c1: 0.865, c2: 180, c3: "Michael", c5: 1 },
            { c1: 0.412, c2: 130, c3: "Emily", c5: 0 },
            { c1: 0.587, c2: 160, c3: "William", c5: 1 },
          ],
        },
      ],
    },
  };
}
const { data } = generateData();
ExcelTable.generateExcel(data);

Comment Option

After version 2.4.0 you can add comment on cells.

function generateData() {
  const colorPalette = {
    c4: "61677A",
    c2: "FFF6E0",
  };
  const rowAlignment = {
    alignment: {
      horizontal: "left",
      vertical: "center",
    },
  };
  const rowStyle = {
    fg: colorPalette.c2,
    fontFamily: "Times New Roman",
    fontColor: "6A2C70",
    ...rowAlignment,
  };
  const headerStyle = {
    fg: colorPalette.c4,
    fontFamily: "Times New Roman",
    fontColor: "#FFFFFF",
  };
  return {
    imageFullName: "ex14.PNG",
    colorPalette,
    url: "https://colorhunt.co/",
    data: {
      addDefaultTitleStyle: true,
      creator: "mr",
      styles: {
        "c0<0.3": {
          fg: "DCD6F7",
          fontColor: "424874s",
          ...rowAlignment,
        },
        male: {
          fg: "95E1D3",
          fontColor: "252A34",
          ...rowAlignment,
        },
        female: {
          fg: "F38181",
          fontColor: "252A34",
          ...rowAlignment,
        },
        rowStyle: {
          ...rowStyle,
        },
        headerStyle: {
          ...headerStyle,
        },
      },
      sheet: [
        {
          shiftTop: 1,
          shiftLeft: 1,
          title: {
            comment: "This is comment on table",
            shiftTop: 1,
            shiftLeft: -1,
            consommeRow: 4,
            consommeCol: 6,
            // height: 100,
            // styleId: '',
            text: "Title",
          },
          commentCodition: function (
            data,
            object,
            headerKey,
            rowIndex,
            colIndex,
            fromHeader
          ) {
            console.log("called");
            if (fromHeader) {
              let textDataC0 = data.text.charAt(0);
              if (textDataC0.toUpperCase() != textDataC0) {
                return {
                  comment: `
Header should start with ${textDataC0.toUpperCase()}`,
                  author: "System",
                };
              }
            }
            return false;
          },
          styleCellCondition(data, fullData, colIndex, rowIndex, fromHeader) {
            if (fromHeader) {
              return "headerStyle";
            } else {
              if (colIndex == 0 && data < 0.3) {
                return "c0<0.3";
              } else if (colIndex == 3) {
                if (data) {
                  return "male";
                } else {
                  return "female";
                }
              } else {
                return "rowStyle";
              }
            }
          },
          headers: [
            {
              label: "c1",
              text: "**",
              comment: {
                author: "mr",
                comment: "misspell in header",
              },
            },
            { label: "c2", text: "++" },
            { label: "c3", text: "Name" },
            { label: "c5", text: "gender" },
          ],
          data: [
            { c1: 0.756, c2: 150, c3: "John", c5: 1 },
            {
              c1: 0.238,
              c2: 120,
              c3: "Jane",
              c5: 0,
              comment: {
                c3: "Comment on Jane",
              },
            },
            { c1: 0.865, c2: 180, c3: "Michael", c5: 1 },
            { c1: 0.412, c2: 130, c3: "Emily", c5: 0 },
            { c1: 0.587, c2: 160, c3: "William", c5: 1 },
          ],
        },
      ],
    },
  };
}
const { data } = generateData();
ExcelTable.generateExcel(data);

Multi Style value Option

After version 2.4.0, We added Ability to change the style of each character of cells. (only text value)

Display code
function generateData() {
  const colorPalette = {
    c4: "F7E987",
    c2: "5B9A8B",
  };
  const rowAlignment = {
    alignment: {
      horizontal: "left",
      vertical: "center",
    },
  };
  const rowStyle = {
    fg: colorPalette.c2,
    fontFamily: "Times New Roman",
    fontColor: "6A2C70",
    ...rowAlignment,
  };
  const headerStyle = {
    fg: colorPalette.c4,
    fontFamily: "Times New Roman",
    fontColor: "#000000",
  };
  return {
    imageFullName: "ex15.PNG",
    colorPalette,
    url: "https://colorhunt.co/palette/f8ede3dfd3c3d0b8a885586f",
    data: {
      addDefaultTitleStyle: true,
      creator: "mr",
      styles: {
        title: {
          size: 48,
          fg: "E5BA73",
          alignment: {
            horizontal: "left",
            vertical: "top",
          },
        },
        t2: {
          fontColor: "FFFFFF",
        },
        t1: {
          fontColor: "555555",
        },
        "c0<0.3": {
          fg: "DCD6F7",
          fontColor: "424874s",
          ...rowAlignment,
        },
        male: {
          fg: "95E1D3",
          fontColor: "252A34",
          ...rowAlignment,
        },
        female: {
          fg: "F38181",
          fontColor: "252A34",
          ...rowAlignment,
        },
        rowStyle: {
          ...rowStyle,
        },
        headerStyle: {
          ...headerStyle,
        },
      },
      sheet: [
        {
          shiftTop: 1,
          shiftLeft: 1,
          title: {
            comment: "This is comment on table",
            shiftTop: 1,
            shiftLeft: -1,
            consommeRow: 4,
            consommeCol: 6,
            multiStyleValue: {
              reg: [
                {
                  reg: /t/gi,
                  styleId: "t2",
                },
              ],
            },
            // height: 100,
            styleId: "title",
            text: "Title",
          },
          commentCodition: function (
            data,
            object,
            headerKey,
            rowIndex,
            colIndex,
            fromHeader
          ) {
            console.log("called");
            if (fromHeader) {
              let textDataC0 = data.text.charAt(0);
              if (textDataC0.toUpperCase() != textDataC0) {
                return {
                  comment: `
Header should start with ${textDataC0.toUpperCase()}`,
                  author: "System",
                };
              }
            }
            return false;
          },
          styleCellCondition(data, fullData, colIndex, rowIndex, fromHeader) {
            if (fromHeader) {
              return "headerStyle";
            } else {
              if (colIndex == 0 && data < 0.3) {
                return "c0<0.3";
              } else if (colIndex == 3) {
                if (data) {
                  return "male";
                } else {
                  return "female";
                }
              } else {
                return "rowStyle";
              }
            }
          },
          headers: [
            {
              label: "c1",
              text: "**",
              comment: {
                author: "mr",
                comment: "misspell in header",
              },
            },
            {
              label: "c2",
              text: "++",
            },
            {
              label: "c3",
              text: "Name",
              multiStyleValue: {
                N: "t1",
                a: "t2",
              },
            },
            { label: "c5", text: "gender" },
          ],
          data: [
            { c1: 0.756, c2: 150, c3: "John", c5: 1 },
            {
              c1: 0.238,
              c2: 120,
              c3: "Jane",
              c5: 0,
              comment: {
                c3: "Comment on Jane",
              },
            },
            { c1: 0.865, c2: 180, c3: "Michael", c5: 1 },
            { c1: 0.412, c2: 130, c3: "Emily", c5: 0 },
            { c1: 0.587, c2: 160, c3: "William", c5: 1 },
          ],
        },
      ],
    },
  };
}
const { data } = generateData();
ExcelTable.generateExcel(data);
function e() {
  const t = { c4: "00ADB5", c2: "393E46" },
    n = { alignment: { horizontal: "left", vertical: "center" } },
    a = { fg: t.c2, fontFamily: "Times New Roman", fontColor: "6A2C70", ...n },
    l = { fg: t.c4, fontFamily: "Times New Roman", fontColor: "#000000" };
  return {
    imageFullName: "ex16.PNG",
    colorPalette: t,
    url: "https://colorhunt.co/palette/f9ed69f08a5db83b5e6a2c70",
    data: {
      addDefaultTitleStyle: !0,
      creator: "mr",
      styles: {
        col2: {
          fontColor: "#F9ED69",
        },
        col1: {
          fontColor: "#FF2E63",
        },
        title: {
          size: 48,
          fg: "F9ED69",
          fontColor: "6A2C70",
          alignment: { horizontal: "center", vertical: "center" },
        },
        t2: { fontColor: "F08A5D" },
        t1: { fontColor: "555555" },
        "c0<0.3": { fg: "DCD6F7", fontColor: "424874s", ...n },
        male: { fg: "95E1D3", fontColor: "252A34", ...n },
        female: { fg: "F38181", fontColor: "252A34", ...n },
        rowStyle: { ...a },
        headerStyle: { ...l },
      },
      sheet: [
        {
          useSplitBaseOnMatch: true,
          shiftTop: 1,
          shiftLeft: 1,
          title: {
            comment: "This is comment on table",
            shiftTop: 1,
            shiftLeft: -1,
            consommeRow: 4,
            consommeCol: 6,
            multiStyleValue: {
              "+": "t1",
              ".": "t1",
              "|": "t1",
              "\\": "t1",
              reg: [{ reg: /t/gi, styleId: "t2" }],
            },
            styleId: "title",
            text: "Title 1",
          },
          multiStyleConditin: function (
            data,
            object,
            headerKey,
            rowIndex,
            colIndex,
            fromHeader
          ) {
            if (fromHeader) {
              let charList = data.text.match(/./g);
              let result = charList.reduce(
                (res, curr, index) => {
                  try {
                    new RegExp(curr);
                  } catch (error) {
                    curr = "\\" + curr;
                  }
                  if (index % 2 == 0) {
                    res.result.reg.push({
                      reg: new RegExp("[" + curr + "]"),
                      styleId: "col1",
                    });
                    return res;
                  } else {
                    res.result.reg.push({
                      reg: new RegExp("[" + curr + "]"),
                      styleId: "col2",
                    });
                    return res;
                  }
                },
                { curr: "", result: { reg: [] } }
              );
              return result.result;
            } else {
              let charList = data.match(/./g);
              let result = charList.reduce(
                (res, curr, index) => {
                  try {
                    new RegExp(curr);
                  } catch (error) {
                    curr = "\\" + curr;
                  }
                  if (index % 2 == 0) {
                    res.result.reg.push({
                      reg: new RegExp("[" + curr + "]"),
                      styleId: "col1",
                    });
                    return res;
                  } else {
                    res.result.reg.push({
                      reg: new RegExp("[" + curr + "]"),
                      styleId: "col2",
                    });
                    return res;
                  }
                },
                { curr: "", result: { reg: [] } }
              );

              return result.result;
            }
          },
          commentCodition: function (o, r, i, s, u, c) {
            if ((console.log("called"), c)) {
              let d = o.text.charAt(0);
              if (d.toUpperCase() != d)
                return {
                  comment: `
Header should start with ${d.toUpperCase()}`,
                  author: "System",
                };
            }
            return !1;
          },
          styleCellCondition(o, r, i, s, u) {
            return u
              ? "headerStyle"
              : i == 0 && o < 0.3
              ? "c0<0.3"
              : i == 3
              ? o
                ? "male"
                : "female"
              : "rowStyle";
          },
          headers: [
            {
              label: "c1",
              text: "**",
              comment: { author: "mr", comment: "misspell in header" },
            },
            { label: "c2", text: "++" },
            {
              label: "c3",
              text: "Name",
              multiStyleValue: { N: "t1", a: "t2" },
            },
            { label: "c5", text: "gender" },
          ],
          data: [
            { c1: "0.756", c2: "150", c3: "John", c5: "1" },
            {
              c1: "0.238",
              c2: "120",
              c3: "Jane",
              c5: "0",
              comment: { c3: "Comment on Jane" },
            },
            { c1: "0.865", c2: "180", c3: "Michael", c5: "1" },
            { c1: "0.412", c2: "130", c3: "Emily", c5: "0" },
            { c1: "0.587", c2: "160", c3: "William", c5: "1" },
          ],
        },
      ],
    },
  };
}
const { data } = e();
ExcelTable.generateExcel(data);
result image

ex

Conditional Styling

Using the 'styleCellCondition' option, you can apply styles to each cell based on specific conditions as needed.

Display code
function e() {
  const t = { c4: "2B2E4A", c2: "E84545" },
    n = { alignment: { horizontal: "left", vertical: "center" } },
    a = { fg: t.c2, fontFamily: "Times New Roman", fontColor: "6A2C70", ...n },
    l = { fg: t.c4, fontFamily: "Times New Roman", fontColor: "#FFFFFF" };
  return {
    imageFullName: "ex9.PNG",
    colorPalette: t,
    url: "https://colorhunt.co/palette/2b2e4ae8454590374953354a",
    data: {
      creator: "mr",
      styles: {
        "c0<0.3": { fg: "DCD6F7", fontColor: "424874s", ...n },
        male: { fg: "95E1D3", fontColor: "252A34", ...n },
        female: { fg: "F38181", fontColor: "252A34", ...n },
        rowStyle: { ...a },
        headerStyle: { ...l },
      },
      sheet: [
        {
          styleCellCondition(r, o, i, s, u, c) {
            return u
              ? "headerStyle"
              : i == 0 && r < 0.3
              ? "c0<0.3"
              : i == 3
              ? r
                ? "male"
                : "female"
              : "rowStyle";
          },
          headers: [
            { label: "c1", text: "**" },
            { label: "c2", text: "++" },
            { label: "c3", text: "Name" },
            { label: "c5", text: "Gender" },
          ],
          data: [
            { c1: 0.756, c2: 150, c3: "John", c5: 1 },
            { c1: 0.238, c2: 120, c3: "Jane", c5: 0 },
            { c1: 0.865, c2: 180, c3: "Michael", c5: 1 },
            { c1: 0.412, c2: 130, c3: "Emily", c5: 0 },
            { c1: 0.587, c2: 160, c3: "William", c5: 1 },
          ],
        },
      ],
    },
  };
}
const { data } = e();
ExcelTable.generateExcel(data);

Image Option

After version 2.8.0, we introduced the ability to add images.

Display code
function generateData() {
  return {
    data: {
      creator: "mr",
      sheet: [
        {
          images: [
            {
              url: "/img/ezgif.com-gif-maker.gif",
              from: "H1",
              type: "one",
            },
            {
              url: "/img/uniqe.jpg",
              from: "H2",
              type: "one",
            },

            {
              url: "/img/ex.PNG",
              from: "H3",
              type: "onde",
            },
            {
              url: "/img/ex.PNG",
              from: "H4",
              type: "two",
            },
            {
              url: "/img/ezgif.com-gif-maker.gif",
              from: "E1",
              to: "F10",
              type: "two",
            },
            {
              url: "/img/uniqe.jpg",
              from: "H6",
              type: "two",
            },
          ],

          headers: [
            {
              label: "Name",
              text: "Name",
            },
            { label: "Color", text: "Color" },
            { label: "Size", text: "Size" },
            { label: "Price", text: "Price" },
          ],
          data: [
            {
              Name: "Rose",
              Color: "Red",
              Size: "Medium",
              Price: 5.99,
            },
            {
              Name: "Tulip",
              Color: "Yellow",
              Size: "Small",
              Price: 2.49,
            },
            {
              Name: "Daisy",
              Color: "White",
              Size: "Small",
              Price: 1.99,
            },
            {
              Name: "Sunflower",
              Color: "Yellow",
              Size: "Large",
              Price: 4.99,
            },
            {
              Name: "Lily",
              Color: "Pink",
              Size: "Medium",
              Price: 3.99,
            },
            {
              Name: "Daffodil",
              Color: "Yellow",
              Size: "Small",
              Price: 2.49,
            },
            {
              Name: "Orchid",
              Color: "Purple",
              Size: "Medium",
              Price: 6.99,
            },
            {
              Name: "Carnation",
              Color: "Red",
              Size: "Small",
              Price: 1.99,
            },
            {
              Name: "Hyacinth",
              Color: "Blue",
              Size: "Medium",
              Price: 4.49,
            },
            {
              Name: "Pansy",
              Color: "Purple",
              Size: "Small",
              Price: 2.99,
            },
          ],
        },
      ],
    },
  };
}
const { data } = generateData();
ExcelTable.generateExcel(data);

result image

ex

result image

ex

API

In the API section, you will discover various options and configurations that you can utilize within the library.

Typescript interface and type
export type ProtectionOption = {
  [key in ProtectionOptionKey]: "0" | "1" | 0 | 1;
};
export interface ImageTypes {
  url: string;
  from: string;
  to?: string;
  type?: "one" | "two";
  extent?: {
    cx: number;
    cy: number;
  };
  margin?: {
    all?: number;
    right?: number;
    left?: number;
    bottom?: number;
    top?: number;
  };
}
export interface SideBySide {
  sheetName?: string;
  spaceX?: number;
  spaceY?: number;
  headers: { label: string; text: string }[];
  data: Data[];
  headerIndex?: number;
}
export type ProtectionOptionKey =
  | "sheet"
  | "formatCells"
  | "formatColumns"
  | "formatRows"
  | "insertColumns"
  | "insertRows"
  | "insertHyperlinks"
  | "deleteColumns"
  | "deleteRows"
  | "sort"
  | "autoFilter"
  | "pivotTables";

export type AlignmentOptionKey =
  | "horizontal"
  | "vertical"
  | "wrapText"
  | "shrinkToFit"
  | "readingOrder"
  | "textRotation"
  | "indent";
export interface AlignmentOption {
  horizontal?: "center" | "left" | "right";
  vertical?: "center" | "top" | "bottom";
  wrapText?: "0" | "1" | 2 | 1;
  shrinkToFit?: "0" | "1" | 2 | 1;
  readingOrder?: "1" | "2" | 2 | 1;
  textRotation?: number;
  indent?: number;
  rtl?: boolean;
  ltr?: boolean;
}
export type BorderDirection = "full" | "top" | "left" | "right" | "bottom";
export type BorderOption = {
  [key in BorderDirection]?: {
    color: string;
    style:
      | "slantDashDot"
      | "dotted"
      | "thick"
      | "hair"
      | "dashDot"
      | "dashDotDot"
      | "dashed"
      | "thin"
      | "mediumDashDot"
      | "medium"
      | "double"
      | "mediumDashed";
  };
};
export interface Header {
  label: string;
  text: string;
  size?: number;
  multiStyleValue?: MultiStyleValue;
  comment?: Comment | string;
  formula?: {
    type: FormulaType;
    styleId?: string;
  };
}

export interface Data extends DataOptions {
  [key: string]: string | number | any | undefined;
}
export interface MultiStyleRexValue {
  reg: RegExp | string;
  styleId: string;
}
export interface Comment {
  comment?: string;
  styleId?: string;
  author?: string;
}
export interface MultiStyleValue {
  [key: string]: string | undefined | MultiStyleRexValue[];
  reg?: MultiStyleRexValue[];
}
export interface MapMultiStyleValue {
  [key: string]: MultiStyleValue;
}
export interface MapComment {
  [key: string]: Comment | string;
}
export interface DataOptions {
  [key: string]:
    | "0"
    | "1"
    | number
    | string
    | undefined
    | MapComment
    | MapMultiStyleValue;
  outlineLevel?: number;
  hidden?: "0" | "1" | number;
  rowStyle?: string;
  height?: number;
  multiStyleValue?: MapMultiStyleValue;
  comment?: MapComment;
}
export interface MergeRowConditionMap {
  [columnKey: string]: {
    inProgress: boolean;
    start: number;
  };
}
export type MultiStyleConditinFunction = (
  data: Header | string | number | undefined,
  object: null | Data,
  headerKey: string,
  rowIndex: number,
  colIndex: number,
  fromHeader: boolean
) => MultiStyleValue | null;

export type CommentConditionFunction = (
  data: Header | string | number | undefined,
  object: null | Data,
  headerKey: string,
  rowIndex: number,
  colIndex: number,
  fromHeader: boolean
) => Comment | string | false | undefined | null;
export type StyleCellConditionFunction = (
  data: Header | string | number | undefined,
  object: Header | Data,
  colIndex: number,
  rowIndex: number,
  fromHeader: boolean,
  stylekeys: string[]
) => string | null;
export type MergeRowDataConditionFunction = (
  data: Header | string | number | undefined,
  key: string | null,
  index: number,
  fromHeader: boolean
) => boolean;
export interface SortAndFilter {
  mode: "all" | "ref";
  ref?: string;
}
export interface Title {
  shiftTop?: number;
  shiftLeft?: number;
  consommeRow?: number;
  consommeCol?: number;
  height?: number;
  styleId?: string;
  text?: string;
  multiStyleValue?: MultiStyleValue;
  comment?: Comment | string;
}
export interface SheetOption {
  withoutHeader?: boolean;
  multiStyleConditin?: MultiStyleConditinFunction;
  useSplitBaseOnMatch?: boolean;
  images?: ImageTypes[];
  formula?: Formula;
  name?: string;
  title?: Title;
  shiftTop?: number;
  shiftLeft?: number;
  selected?: boolean;
  tabColor?: string;
  merges?: string[];
  headerStyleKey?: string;
  mergeRowDataCondition?: MergeRowDataConditionFunction;
  styleCellCondition?: StyleCellConditionFunction;
  commentCodition?: CommentConditionFunction;
  sortAndfilter?: SortAndFilter;
  state?: "hidden" | "visible";
  headerRowOption?: any;
  protectionOption?: ProtectionOption;
  headerHeight?: number;
}
export interface Sheet extends SheetOption {
  headers: Header[];
  data: Data[];
}
export interface HeaderRowOption {
  outlineLevel: "string";
}
export interface StyleMapper {
  commentSintax: {
    value: {
      [key: string]: string;
    };
  };
  format: {
    count: number;
    value: string;
  };
  border: {
    count: number;
    value: string;
  };
  fill: {
    count: number;
    value: string;
  };
  font: {
    count: number;
    value: string;
  };
  cell: {
    count: number;
    value: string;
  };
}
export type FormulaType = "AVERAGE" | "SUM" | "COUNT" | "MAX" | "MIN";
export interface StyleBody {
  fg?: string;
  fontColor?: string;
  fontFamily?: string;
  size?: number;
  index?: number;
  alignment?: AlignmentOption;
  border?: BorderOption;
  format?: string;
  bold?: boolean;
  underline?: boolean;
  italic?: boolean;
  doubleUnderline?: boolean;
}
export interface Styles {
  [key: string]: StyleBody;
}
export interface FormatMap {
  [format: string]: {
    key: number;
    value?: string;
  };
}
export interface FormulaSetting {
  type: FormulaType;
  start: string;
  end: string;
  styleId?: string;
}
export interface Formula {
  [insertCell: string]: FormulaSetting;
}
export interface Theme extends ExcelTableOption {
  sheet: SheetOption[];
}
export interface ExcelTableOption {
  notSave?: boolean;
  creator?: string;
  backend?: boolean;
  fileName?: string;
  generateType?: "nodebuffer" | "array" | "binarystring" | "base64";
  addDefaultTitleStyle?: boolean;
  created?: string;
  modified?: string;
  numberOfColumn?: number;
  createType?: string;
  mapSheetDataOption?: any;
  styles?: Styles;
}
export interface ExcelTable extends ExcelTableOption{
  sheet: Sheet[];
}

ExcelTable Object

In the ExcelTable object, you'll find various properties that allow you to customize the behavior and appearance of the generated Excel file through the generateExcel function.

NameTypeDescription
notSave?booleanControls whether the generated Excel file should be saved.
backend?booleanFor backend use cases, set to true.
addDefaultTitleStyle?booleanIf set to true, generates default style for the title option.
fileName?stringName of the file that will be generated.
generateType?stringFor backend use, specifies the type of generated file ("nodebuffer" triggers only if backend is true).
creator?stringSpecifies the creator of the Excel file.
created?stringSets the creation date of the Excel file.
modified?stringSets the modification date of the Excel file.
numberOfColumn?numberSpecifies the number of columns in the Excel file.
createType?stringSpecifies the type of creation for the Excel file.
mapSheetDataOption?anyAn option to define the type if needed for mapping sheet data.
styles?StylesDefines the styles to be applied to the Excel cells.
sheetSheet[]An array of sheets containing data and configuration settings.

These properties provide you with the flexibility to customize various aspects of the Excel file generated by the generateExcel function.

Styles Object

To define the styling for your Excel file, you should utilize this option. The Styles object allows you to specify various formatting properties that will be applied to cells in the generated Excel file. Each property in the object corresponds to a specific style element, such as foreground color, font color, font family, size, alignment, border, and format. You can customize these properties according to your preferences to achieve the desired visual appearance for your Excel document.

[key: string]: {
  fg?: string;
  fontColor?: string;
  fontFamily?: string;
  size?: number;
  index?: number;
  alignment?: AlignmentOption;
  border?: BorderOption;
  format?: string;
  bold?: boolean;
  underline?: boolean;
  italic?: boolean;
  doubleUnderline?: boolean;
}

Styles Object

To define the styling for your Excel file, you should utilize this option. The Styles object allows you to specify various formatting properties that will be applied to cells in the generated Excel file. Each property in the object corresponds to a specific style element, such as foreground color, font color, font family, size, alignment, border, and format. You can customize these properties according to your preferences to achieve the desired visual appearance for your Excel document.

NameTypeDescription
fg?stringSpecifies the foreground color of the cell text.
fontColor?stringDefines the font color of the cell text.
fontFamily?stringSets the font family for the cell text.
size?numberSpecifies the font size of the cell text.
index?numberSpecifies the index of the style.
alignment?AlignmentOptionDefines the cell alignment properties (horizontal and vertical).
border?BorderOptionSpecifies the border style for the cell.
bold?booleanDefines whether the cell text should be bold.
underline?booleanDefines whether the cell text should be underlined.
italic?booleanDefines whether the cell text should be italic.
doubleUnderline?booleanDefines whether the cell text should have double underline.
formatstringDetermines the format of the cell content, such as date, time, currency, etc.

These properties allow you to customize the appearance of cells in your Excel document by applying various formatting styles.

Sheet Object

The Sheet object is used to define various options related to a specific sheet within the Excel file. It holds a significant role and can be considered one of the most crucial options.

NameTypeDescription
withoutHeader?booleanSpecifies whether the sheet should be generated without a header row.
formula?FormulaDefines formulas to be applied to the sheet.
name?stringSets the name of the sheet.
shiftTop?numberShifts the start point from the top.
shiftLeft?numberShifts the start point from the left.
title?TitleSets a title for the generated table (default; title consumes 2 rows and columns equal to header array length).
selected?booleanDetermines if the sheet is selected when the Excel file is opened.
tabColor?stringSpecifies the tab color of the sheet.
merges?string[]Defines merged cell ranges within the sheet.
headerStyleKey?stringSets the style for the header cells using a style ID.
mergeRowDataCondition?MergeRowDataConditionFunctionDefines a condition for merging rows.
styleCellCondition?StyleCellConditionFunctionSets styling conditions for individual cells.
sortAndfilter?SortAndFilterDefines sorting and filtering options for the sheet.
state?"hidden" | "visible"Determines the visibility of the sheet.
headerRowOption?anyAllows the definition of header row options (type to be defined if needed).
protectionOption?ProtectionOptionSpecifies protection options for the sheet.
headerHeight?numberSets the height of the header row.
headersHeader[]Defines the headers for the sheet columns.
dataData[]Provides the data entries for the sheet.

These properties allow you to customize the behavior and appearance of individual sheets within the Excel file generated using the library. You can set headers, apply formulas, define styles, manage merging cells, specify visibility, and much more to create Excel sheets that match your specific requirements.

Title

The title option allows you to add a title at the starting point of the generated table.

PropertyTypeDescription
shiftTop?numberShifts the title vertically from the top.
shiftLeft?numberShifts the title horizontally from the left.
consommeRow?numberSpecifies the number of rows consumed by the title.
consommeCol?numberSpecifies the number of columns consumed by the title.
height?numberSets the height of the title row.
styleId?stringApplies a style to the title using a style ID.
text?stringSpecifies the text content of the title.

By using the Title interface and its properties, you can customize the appearance and positioning of titles within your generated Excel tables.

Border Object

The BorderOption object enables you to add borders to your Excel cells conveniently. It provides a way to define border properties for various border directions.

PropertyTypeDescription
keystringA BorderDirection value indicating the border direction. Possible values: "full", "top", "left", "right", "bottom".
colorstringThe color of the border. Use a valid color code or name.
stylestringThe style of the border. Choose from predefined styles such as "slantDashDot", "dotted", "thick", and more.

By utilizing the BorderOption object, you can specify border color and style for different directions, enhancing the visual appearance of your Excel tables with well-defined cell borders.

Formula Object

The Formula object provides a way to define formulas for Excel cells. It comprises the following properties:

PropertyTypeDescription
insertCellstringThe cell where the formula will be inserted.
type"AVERAGE" | "SUM" | "COUNT" | "MAX" | "MIN"The type of formula to apply. Choose from options such as "AVERAGE", "SUM", "COUNT", "MAX", and "MIN".
startstringThe starting cell for the formula range.
endstringThe ending cell for the formula range.
styleIdstring (Optional)The style ID to apply to cells with the formula. Use if you want to style formula cells.

In the provided example, we've demonstrated how to define formulas for various cells using the Formula object. You can specify the formula type, range, and even apply specific styles to formula cells if desired.

Alignment Object

The library offers multiple options for aligning cells, giving you control over how content is displayed within cells. These alignment options can be configured using the following properties:

PropertyTypeDescription
horizontal"center" | "left" | "right"The horizontal alignment of cell content. Choose from "center", "left", or "right".
vertical"bottom" | "top" | "bottom"The vertical alignment of cell content. Choose from "bottom", "top", or "bottom".
wrapText"0" | "1"Whether to wrap text within cells. Use "0" for false or "1" for true.
shrinkToFit"0" | "1"Whether to shrink cell content to fit within the cell. Use "0" for false or "1" for true.
readingOrder"1" | "2" | 2 | 1The reading order of cell content. Choose from "1" (left to right) or "2" (right to left).
textRotationnumberThe degree of text rotation within cells. Use a number to represent the rotation angle.
indentnumberThe indentation level of cell content. Use a number to specify the indent.
rtlbooleanWhether the cell content should be displayed right-to-left. Use "true" for right-to-left alignment.
ltrbooleanWhether the cell content should be displayed left-to-right. Use "true" for left-to-right alignment.

These alignment options empower you to customize the appearance of cell content in your Excel sheets. By adjusting these properties, you can control the positioning, orientation, and overall style of data within your cells.

Release Notes

Version 2.11.0 (2023-09-13)

Bug Fixes
  • bug related to string with special character(&<,...)
Improvement
  • improvement in generate file

Version 2.10.0 (2023-09-12)

improvement
  • Data Can Be Undefined

Version 2.9.0 (2023-09-10)

New Features
  • Generate excel base on Theme

Version 2.8.0 (2023-09-08)

New Features
  • ability for add image to excel

Version 2.7.0 (2023-09-02)

New Features
  • sideBySideLineByLine, multi-table in single sheet

Version 2.6.0 (2023-08-27)

Improvement
  • add mode("useSplitBaseOnMatch") that helps multi-style better performance in unexpected results.
  • condition function for multi style feature

Version 2.5.0 (2023-08-26)

Improvement
  • keep cell style for not match in multi style cell

Version 2.4.2 (2023-08-24)

Bug Fixes
  • Error in Merge cell after try multi time

Version 2.4.1 (2023-08-20)

Bug Fixes
  • black background in convertTableToExcel
Improvement
  • Added 2.4.0 Feature example

Version 2.4.0 (2023-08-20)

Improvement
  • Added the ability to add comments to cells
  • Conditional ability to comment on cells
  • Ability to change the style of each character of cells. (only text value)

Version 2.3.0 (2023-08-16)

Improvement
  • capability to use var and rgb for fg, border color and font color

Version 2.2.2 (2023-08-15)

Improvement
  • convertTableToExcel: related to hight & width
  • convertTableToExcel get optinal function rowHeightScaleFunction & colWidthScaleFunction

Version 2.1.2 (2023-08-14)

Bug Fixes
  • Fixed issue with incorrect CDN address.

Version 2.1.0 (2023-08-14)

New Features
  • Introducing the ability to convert tables into Excel format.

Version 2.0.0 (2023-08-13)

Bug Fixes
  • Fixed issue with incorrect CDN address.
New Features
  • Added the ability to set the generated file name via the fileName property.

Changes

  • Updated the default value of the generateType property.

Changelog

For a detailed list of all changes, please refer to the changelog.

Thank You

Thank you for choosing our library! We greatly value your feedback and suggestions as we continue to improve and enhance our product.

Theme images

black-white-text0

black-white-text1

black-white-text10

black-white-text100

black-white-text101

black-white-text102

black-white-text103

black-white-text104

black-white-text105

black-white-text106

black-white-text107

black-white-text108

black-white-text109

black-white-text11

black-white-text110

black-white-text111

black-white-text112

black-white-text113

black-white-text114

black-white-text115

black-white-text116

black-white-text117

black-white-text118

black-white-text119

black-white-text12

black-white-text120

black-white-text121

black-white-text122

black-white-text123

black-white-text124

black-white-text125

black-white-text126

black-white-text127

black-white-text128

black-white-text129

black-white-text13

black-white-text130

black-white-text131

black-white-text132

black-white-text133

black-white-text134

black-white-text135

black-white-text136

black-white-text137

black-white-text138

black-white-text139

black-white-text14

black-white-text140

black-white-text141

black-white-text142

black-white-text143

black-white-text144

black-white-text145

black-white-text146

black-white-text147

black-white-text148

black-white-text149

black-white-text15

black-white-text150

black-white-text151

black-white-text152

black-white-text153

black-white-text154

black-white-text155

black-white-text156

black-white-text157

black-white-text158

black-white-text159

black-white-text16

black-white-text160

black-white-text161

black-white-text162

black-white-text163

black-white-text164

black-white-text165

black-white-text166

black-white-text167

black-white-text168

black-white-text169

black-white-text17

black-white-text170

black-white-text171

black-white-text172

black-white-text173

black-white-text174

black-white-text175

black-white-text176

black-white-text177

black-white-text178

black-white-text179

black-white-text18

black-white-text180

black-white-text181

black-white-text182

black-white-text183

black-white-text184

black-white-text185

black-white-text186

black-white-text187

black-white-text188

black-white-text189

black-white-text19

black-white-text190

black-white-text191

black-white-text192

black-white-text193

black-white-text194

black-white-text195

black-white-text196

black-white-text197

black-white-text198

black-white-text199

black-white-text2

black-white-text20

black-white-text200

black-white-text201

black-white-text202

black-white-text203

black-white-text204

black-white-text205

black-white-text206

black-white-text207

black-white-text208

black-white-text209

black-white-text21

black-white-text210

black-white-text211

black-white-text212

black-white-text213

black-white-text214

black-white-text215

black-white-text216

black-white-text217

black-white-text218

black-white-text219

black-white-text22

black-white-text220

black-white-text221

black-white-text222

black-white-text223

black-white-text224

black-white-text225

black-white-text226

black-white-text227

black-white-text228

black-white-text229

black-white-text23

black-white-text230

black-white-text231

black-white-text232

black-white-text233

black-white-text234

black-white-text235

black-white-text236

black-white-text237

black-white-text238

black-white-text239

black-white-text24

black-white-text240

black-white-text241

black-white-text242

black-white-text243

black-white-text244

black-white-text245

black-white-text246

black-white-text247

black-white-text248

black-white-text249

black-white-text25

black-white-text250

black-white-text251

black-white-text252

black-white-text253

black-white-text254

black-white-text255

black-white-text256

black-white-text257

black-white-text258

black-white-text259

black-white-text26

black-white-text260

black-white-text261

black-white-text262

black-white-text263

black-white-text264

black-white-text265

black-white-text266

black-white-text267

black-white-text268

black-white-text269

black-white-text27

black-white-text270

black-white-text271

black-white-text272

black-white-text273

black-white-text274

black-white-text275

black-white-text276

black-white-text277

black-white-text278

black-white-text279

black-white-text28

black-white-text280

black-white-text281

black-white-text282

black-white-text283

black-white-text284

black-white-text285

black-white-text286

black-white-text287

black-white-text288

black-white-text289

black-white-text29

black-white-text290

black-white-text291

black-white-text292

black-white-text293

black-white-text294

black-white-text295

black-white-text296

black-white-text297

black-white-text298

black-white-text299

black-white-text3

black-white-text30

black-white-text300

black-white-text301

black-white-text302

black-white-text303

black-white-text304

black-white-text305

black-white-text306

black-white-text307

black-white-text308

black-white-text309

black-white-text31

black-white-text310

black-white-text311

black-white-text312

black-white-text313

black-white-text314

black-white-text315

black-white-text316

black-white-text317

black-white-text318

black-white-text319

black-white-text32

black-white-text320

black-white-text321

black-white-text322

black-white-text323

black-white-text324

black-white-text325

black-white-text326

black-white-text327

black-white-text328

black-white-text329

black-white-text33

black-white-text330

black-white-text331

black-white-text332

black-white-text333

black-white-text334

black-white-text335

black-white-text336

black-white-text337

black-white-text338

black-white-text339

black-white-text34

black-white-text340

black-white-text341

black-white-text342

black-white-text343

black-white-text344

black-white-text345

black-white-text346

black-white-text347

black-white-text348

black-white-text349

black-white-text35

black-white-text350

black-white-text351

black-white-text352

black-white-text353

black-white-text354

black-white-text355

black-white-text356

black-white-text357

black-white-text358

black-white-text359

black-white-text36

black-white-text360

black-white-text361

black-white-text362

black-white-text363

black-white-text364

black-white-text365

black-white-text366

black-white-text367

black-white-text368

black-white-text369

black-white-text37

black-white-text370

black-white-text371

black-white-text372

black-white-text373

black-white-text374

black-white-text375

black-white-text376

black-white-text377

black-white-text378

black-white-text379

black-white-text38

black-white-text380

black-white-text381

black-white-text382

black-white-text383

black-white-text384

black-white-text385

black-white-text386

black-white-text387

black-white-text388

black-white-text389

black-white-text39

black-white-text390

black-white-text391

black-white-text392

black-white-text393

black-white-text394

black-white-text395

black-white-text396

black-white-text397

black-white-text398

black-white-text399

black-white-text4

black-white-text40

black-white-text400

black-white-text41

black-white-text42

black-white-text43

black-white-text44

black-white-text45

black-white-text46

black-white-text47

black-white-text48

black-white-text49

black-white-text5

black-white-text50

black-white-text51

black-white-text52

black-white-text53

black-white-text54

black-white-text55

black-white-text56

black-white-text57

black-white-text58

black-white-text59

black-white-text6

black-white-text60

black-white-text61

black-white-text62

black-white-text63

black-white-text64

black-white-text65

black-white-text66

black-white-text67

black-white-text68

black-white-text69

black-white-text7

black-white-text70

black-white-text71

black-white-text72

black-white-text73

black-white-text74

black-white-text75

black-white-text76

black-white-text77

black-white-text78

black-white-text79

black-white-text8

black-white-text80

black-white-text81

black-white-text82

black-white-text83

black-white-text84

black-white-text85

black-white-text86

black-white-text87

black-white-text88

black-white-text89

black-white-text9

black-white-text90

black-white-text91

black-white-text92

black-white-text93

black-white-text94

black-white-text95

black-white-text96

black-white-text97

black-white-text98

black-white-text99

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

negative-text1000

negative-text1001

negative-text1002

negative-text1003

negative-text1004

negative-text1005

negative-text1006

negative-text1007

negative-text1008

negative-text1009

negative-text1010

negative-text1011

negative-text1012

negative-text1013

negative-text1014

negative-text1015

negative-text1016

negative-text1017

negative-text1018

negative-text1019

negative-text1020

negative-text1021

negative-text1022

negative-text1023

negative-text1024

negative-text1025

negative-text1026

negative-text1027

negative-text1028

negative-text1029

negative-text1030

negative-text1031

negative-text1032

negative-text1033

negative-text1034

negative-text1035

negative-text1036

negative-text1037

negative-text1038

negative-text1039

negative-text1040

negative-text1041

negative-text1042

negative-text1043

negative-text1044

negative-text1045

negative-text1046

negative-text1047

negative-text1048

negative-text1049

negative-text1050

negative-text1051

negative-text1052

negative-text1053

negative-text1054

negative-text1055

negative-text1056

negative-text1057

negative-text1058

negative-text1059

negative-text1060

negative-text1061

negative-text1062

negative-text1063

negative-text1064

negative-text1065

negative-text1066

negative-text1067

negative-text1068

negative-text1069

negative-text1070

negative-text1071

negative-text1072

negative-text1073

negative-text1074

negative-text1075

negative-text1076

negative-text1077

negative-text1078

negative-text1079

negative-text1080

negative-text1081

negative-text1082

negative-text1083

negative-text1084

negative-text1085

negative-text1086

negative-text1087

negative-text1088

negative-text1089

negative-text1090

negative-text1091

negative-text1092

negative-text1093

negative-text1094

negative-text1095

negative-text1096

negative-text1097

negative-text1098

negative-text1099

negative-text1100

negative-text1101

negative-text1102

negative-text1103

negative-text1104

negative-text1105

negative-text1106

negative-text1107

negative-text1108

negative-text1109

negative-text1110

negative-text1111

negative-text1112

negative-text1113

negative-text1114

negative-text1115

negative-text1116

negative-text1117

negative-text1118

negative-text1119

negative-text1120

negative-text1121

negative-text1122

negative-text1123

negative-text1124

negative-text1125

negative-text1126

negative-text1127

negative-text1128

negative-text1129

negative-text1130

negative-text1131

negative-text1132

negative-text1133

negative-text1134

negative-text1135

negative-text1136

negative-text1137

negative-text1138

negative-text1139

negative-text1140

negative-text1141

negative-text1142

negative-text1143

negative-text1144

negative-text1145

negative-text1146

negative-text1147

negative-text1148

negative-text1149

negative-text1150

negative-text1151

negative-text1152

negative-text1153

negative-text1154

negative-text1155

negative-text1156

negative-text1157

negative-text1158

negative-text1159

negative-text1160

negative-text1161

negative-text1162

negative-text1163

negative-text1164

negative-text1165

negative-text1166

negative-text1167

negative-text1168

negative-text1169

negative-text1170

negative-text1171

negative-text1172

negative-text1173

negative-text1174

negative-text1175

negative-text1176

negative-text1177

negative-text1178

negative-text1179

negative-text1180

negative-text1181

negative-text1182

negative-text1183

negative-text1184

negative-text1185

negative-text1186

negative-text1187

negative-text1188

negative-text1189

negative-text1190

negative-text1191

negative-text1192

negative-text1193

negative-text1194

negative-text1195

negative-text1196

negative-text1197

negative-text1198

negative-text1199

negative-text1200

negative-text801

negative-text802

negative-text803

negative-text804

negative-text805

negative-text806

negative-text807

negative-text808

negative-text809

negative-text810

negative-text811

negative-text812

negative-text813

negative-text814

negative-text815

negative-text816

negative-text817

negative-text818

negative-text819

negative-text820

negative-text821

negative-text822

negative-text823

negative-text824

negative-text825

negative-text826

negative-text827

negative-text828

negative-text829

negative-text830

negative-text831

negative-text832

negative-text833

negative-text834

negative-text835

negative-text836

negative-text837

negative-text838

negative-text839

negative-text840

negative-text841

negative-text842

negative-text843

negative-text844

negative-text845

negative-text846

negative-text847

negative-text848

negative-text849

negative-text850

negative-text851

negative-text852

negative-text853

negative-text854

negative-text855

negative-text856

negative-text857

negative-text858

negative-text859

negative-text860

negative-text861

negative-text862

negative-text863

negative-text864

negative-text865

negative-text866

negative-text867

negative-text868

negative-text869

negative-text870

negative-text871

negative-text872

negative-text873

negative-text874

negative-text875

negative-text876

negative-text877

negative-text878

negative-text879

negative-text880

negative-text881

negative-text882

negative-text883

negative-text884

negative-text885

negative-text886

negative-text887

negative-text888

negative-text889

negative-text890

negative-text891

negative-text892

negative-text893

negative-text894

negative-text895

negative-text896

negative-text897

negative-text898

negative-text899

negative-text900

negative-text901

negative-text902

negative-text903

negative-text904

negative-text905

negative-text906

negative-text907

negative-text908

negative-text909

negative-text910

negative-text911

negative-text912

negative-text913

negative-text914

negative-text915

negative-text916

negative-text917

negative-text918

negative-text919

negative-text920

negative-text921

negative-text922

negative-text923

negative-text924

negative-text925

negative-text926

negative-text927

negative-text928

negative-text929

negative-text930

negative-text931

negative-text932

negative-text933

negative-text934

negative-text935

negative-text936

negative-text937

negative-text938

negative-text939

negative-text940

negative-text941

negative-text942

negative-text943

negative-text944

negative-text945

negative-text946

negative-text947

negative-text948

negative-text949

negative-text950

negative-text951

negative-text952

negative-text953

negative-text954

negative-text955

negative-text956

negative-text957

negative-text958

negative-text959

negative-text960

negative-text961

negative-text962

negative-text963

negative-text964

negative-text965

negative-text966

negative-text967

negative-text968

negative-text969

negative-text970

negative-text971

negative-text972

negative-text973

negative-text974

negative-text975

negative-text976

negative-text977

negative-text978

negative-text979

negative-text980

negative-text981

negative-text982

negative-text983

negative-text984

negative-text985

negative-text986

negative-text987

negative-text988

negative-text989

negative-text990

negative-text991

negative-text992

negative-text993

negative-text994

negative-text995

negative-text996

negative-text997

negative-text998

negative-text999

Example result

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

ex

Keywords

FAQs

Package last updated on 13 Sep 2023

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