npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

quick-excel-json

v2.0.0

Published

Convert Excel (.xlsx, .xls, .csv) files to JSON easily. Fast, lightweight, and perfect for React, Node.js, and web applications. Supports SheetJS and ExcelJS and a simple npm package to convert JSON data to an Excel (.xlsx, .xls) file using SheetJS (xlsx)

Readme

📊 Excel to JSON Converter

Easily convert Excel (.xlsx, .xls, .csv) files into JSON format using this lightweight and efficient package and a simple and lightweight npm package that allows you to convert JSON data into an Excel (.xlsx, .xls) file using the xlsx (SheetJS) library.

🚀 Installation

Install the package using npm or yarn:

npm install quick-excel-json
yarn add quick-excel-json

📖 Usage

import { useState } from 'react';
import { fileHandler, handleExportHandler } from "quick-excel-json";

// JSON data for testing
const jsonData = [
  { id: 1, name: "Ali", age: 25 },
  { id: 2, name: "Vali", age: 30 },
  { id: 3, name: "Hasan", age: 28 }
];

function Example() {
  const [excelFile, setExcelFile] = useState(null);
  const [jsonFile, setJsonFile] = useState(null);
  const [data, setData] = useState([]);

  // excel to json
  const handleFile = async () => {
    try {
      const result = await fileHandler(excelFile);
      setData(result);
    } catch (error) {
      console.error("Error reading file:", error);
    }
  }

  // json to excel
  const handleExport = () => {
    if (jsonFile) {
      handleExportHandler(jsonFile); // sending json data
    }
  };

  // json to excel
  const handleExportWithoutFile = () => {
    handleExportHandler(jsonData); // sending json data
  };

  return (
     <>
      <div>
        <div style={{ display: "flex", alignItems: "center", justifyContent: "space-between", gap: "12px" }}>
          <div>
            <input
              type="file"
              accept='.xls, .xlsx, .csv'
              id='upload_file'
              onClick={e => e.target.value = null}
              onChange={event => setExcelFile(event.target.files[0])}
            />
            <button type='button' onClick={handleFile}>Convert to JSON format</button>
          </div>

          <div style={{ width: "2px", height: "30px", background: "#000" }}></div>

          <div style={{ display: "flex", alignItems: "center", gap: "12px" }}>
            <input
              type="file"
              accept='.json'
              id='upload_file'
              onClick={e => e.target.value = null}
              onChange={event => setJsonFile(event.target.files[0])}
            />
            <button onClick={handleExport}>Export to Excel with file</button>
            <button onClick={handleExportWithoutFile}>Export to Excel without file</button>
          </div>
        </div>

        <pre>
          {data}
        </pre>
      </div>
    </>
  )
}

export default Example;

Example

Click here to view. here

🎯 Features

✅ Supports .xlsx, .xls, .csv formats ✅ Works in both React and Node.js ✅ Fast and lightweight ✅ Convert JSON to Excel (.xlsx) format
✅ Easy to use with React & Node.js
✅ No external dependencies (only xlsx)

Development

To contribute or make changes, clone the repository and install dependencies:

git clone https://github.com/hikmatjan1/from_excel_to_json.git
cd from_excel_to_json
npm install

Run the development server:

npm run dev

Keywords

quick-excel-json, excel, xlsx, xls, csv, json, excel-to-json, json-to-excel, json, json-to-sheet, xlsx-to-json,convert json to excel, csv-to-json, excel-parser, convert excel to json, spreadsheet to json, json to spreadsheet, spreadsheet, data-converter, excel-to-json-converter,json-to-excel-converter, exceljs, sheetjs,jsonjs, json extractor, fast excel parser,fast json parser, react excel parser, react json parser, sheet-to-json, exceljs-transform,xlsx-json-parser, json-xlsx-parser, excel-to-json-converte"

📜 License MIT