Giter VIP home page Giter VIP logo

xlsx-parser.js's Introduction

XLSX-Parser

This 'library', if you can even call it that, can be run fully on the browser. Simply pass it a file and then let it do its "magic". An example can be seen in App.vue,

Usage

const spreadsheet = await Spreadsheet.loadFromFile(target.files[0]);

for (const worksheet of spreadsheet.worksheets) {
  console.log(`Worksheet ${worksheet.name} has been loaded.`);
  for (const row of worksheet.rows) {
    // You can do something row-related here
    for (const cell of row.cells) {
      // You can do something cell-related here

      // Prints all the cell's values
      console.log(`${cell.value}`);
    }
  }
}

It is a bit verbose at the moment, having to jump through so many hoops to get to the MEAT AND POTATOES of the spreadsheet, which are the cells. Which is why I plan to (hopefully) create some kind of way to directly get the value of a cell by cell reference, like B5 as an example, or some other more intuitive way, but I am still thinking about it.

Disclaimer

This is barely completed and while it has the all the features you'd need (probably) its still far from complete and is very bare bones (and buggy). If you want to contribute, feel free, I can already tell this project is one of those where I have a burst of motivation for 6 hours and dump all my time into this only to forget it the next day.

xlsx-parser.js's People

Contributors

wooneusean avatar

Watchers

 avatar

xlsx-parser.js's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.