ndjson-spec VS SheetJS js-xlsx

Compare ndjson-spec vs SheetJS js-xlsx and see what are their differences.

SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
ndjson-spec SheetJS js-xlsx
6 61
633 34,530
2.8% 0.5%
0.0 2.4
over 1 year ago 28 days ago
JavaScript
- Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

ndjson-spec

Posts with mentions or reviews of ndjson-spec. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-02-24.
  • Documentation for the JSON Lines text file format
    4 projects | news.ycombinator.com | 24 Feb 2024
    What’s the difference between terminators and separators here? The ndjson spec [0] doesn’t say anything like that, and it seems that ndjson and jsonlines are identical in what documents they accept.

    [0]: https://github.com/ndjson/ndjson-spec

  • Does anyone use JSON files as a database? Best practises? Or should I use a "real" database?
    3 projects | /r/node | 29 Jan 2023
    It's possible to work around this and still use a JSON-ish format. For example, my @broofa/persistentmap project provides an ES6 Map API backed by a persistent append-only file in NDJSON format. (Note: NDJSON isn't really a spec so much as a "convention"). But, honestly,
  • Why isn’t there a decent file format for tabular data?
    13 projects | news.ycombinator.com | 3 May 2022
    ndjson is actually a really pragmatic choice here that should not be overlooked.

    Tabular formats break down when the data stops being tabular. This comes up a lot. People love spread sheets as editing tools but they then end up doing things like putting comma separated values in a cell. I've also seen business people use empty cells to indicate hierarchical 'inheritance". An alternate interpretation of that is that that data has some kind of hierarchy and isn't really row based. People just shoehorn all sorts of stuff into spreadsheets because they are there.

    With ndjson, every line is a json object. Every cell is a named field. If you need multiple values, you can use arrays for the fields. Json has actual types (int, float, strings, boolean). So you can have both hierarchical and multivalued data in a row. The case where all the fields are simple primitives is just the simple case. It has an actual specification too: https://github.com/ndjson/ndjson-spec. I like it because I can stream process it and represent arbitrarily complex objects/documents instead of having to flatten it into columns. The parsing overhead makes it more expensive to use than tsv though. The file size is fine if you use e.g. gzip compression. It compresses really well generally.

    But I also use either tab separated values quite often for simpler data. I mainly like it because google spread sheets provides that as an export option and is actually a great editor for tabular data that I can just give to non technical people.

    Both file formats can be easily manipulated with command line tools (jq, csvkit, sed, etc.). Both can be processed using mature parsers in a wide range of languages. If you really want, you can edit them with simple text editors, though you probably should be careful with that. Tools like bat know how to format and highlight these files as well. Etc. Tools like that are important because you can use them and script them together rather than reinventing wheels.

    Formats like parquet are cumbersome mainly because none of the tools I mention support it. No editors. Not a lot of command line tools. No formatting tools. If you want to inspect the data, you pretty much have to write a program to do it. I guess this would be fixable but people seem to be not really interested in doing that work. Parquet becomes nice when you need to process data at scale and in any case use a lot of specialized tooling and infrastructure. Not for everyone in other words.

    Character encoding is not an issue with either tsv or ndjson if you simply use UTF-8, always. I see no good technical reason why you should use anything else. Anything else should be treated as a bug or legacy. Of course a lot of data has encoding issues regardless. Shit in, shit out basically. Fix it at the source, if you can.

    The last point is actually key because all of the issues with e.g. csv usually start with people just using really crappy tools to produce source data. Switching to a different file format won't fix these issues since you still deal with the same crappy tools that of course do not support this file format. Anything else you could just fix to not suck to begin with. And if you do, it stops being an issue. The problem is when you can't.

    Nothing wrong with tsv if you use UTF-8 and a some nice framework that generates properly escaped values and does all the right things. The worst you can say about it is that there are a bit too many choices here and people tend to improvise their own crappy data generation tools with escaping bugs and other issues. Most of the pain is self inflicted. The reason csv/tsv are popular is that you don't need a lot of frameworks / tools. But of course the flipside is that DYI leads to people introducing all sorts of unnecessary issues. Try not to do that.

  • Has UML died without anyone noticing?
    4 projects | /r/programming | 25 Apr 2021
    Newline-separated JSON is pretty close. It's not exactly a "standard" standard like something the IETF defines, but it's pretty easy to work with anyhow.
  • json to csv on google cloud fusion
    1 project | /r/googlecloud | 16 Feb 2021

SheetJS js-xlsx

Posts with mentions or reviews of SheetJS js-xlsx. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-06-28.
  • how to work with .xlsx files?
    7 projects | /r/node | 28 Jun 2023
    ExcelJS and XLSX (SheetJS) are great libraries to work with XLSX files. The former I've found a bit easier to work with but less efficient in general.
  • What kind of Programmer / language should I be looking for?
    3 projects | /r/AskProgramming | 4 May 2023
    Sure. I manipulate excel files programatically in the browser all the time. I don't really understand your exact workflow, but I use Javascript with xlsx and React.
  • Excel To Json ?
    1 project | /r/node | 16 Mar 2023
  • React App Won't Read xlsx File
    1 project | /r/react | 6 Mar 2023
    Looking at the xlsx documentation, to parse files in the browser, rather than readFile, you use read, which is designed to parse binary data directly, rather than read from disk. There are a bunch of different formats if you go to the XLSX NPM page and scroll down to "Acquiring and Extracting Data". Importantly, it seems the data must already be serialized, so a Blob won't work, but we can work with that.
  • We compete with GitHub. Bing does not show our website
    1 project | news.ycombinator.com | 9 Feb 2023
    Last year, Bing and Edge erroneously flagged our website https://sheetjs.com/ as "dangerous": https://i.imgur.com/BvA3zrk.png

    At the time, there was no "Safety Report" to indicate why Bing thought it was dangerous. The report page linked to https://www.bing.com/toolbox/bing-site-safety?url=https%3a%2... and it said "That web page doesn't exist"

    To fix it, we had to register with "Bing Webmaster Tools" (https://www.bing.com/webmasters/about) and raise a support ticket.

    Within a few days, the issue "resolved itself". It's possible that raising a ticket forced some automatic refresh of the indexed data for the domain.

  • Product Comparison App (JS Demo Project)
    7 projects | dev.to | 4 Feb 2023
    xlsx.
  • Ask HN: Who is hiring? (February 2023)
    14 projects | news.ycombinator.com | 1 Feb 2023
    SheetJS | https://sheetjs.com/ | Software Developer | Full time, Remote (US) | $165K - $240K

    We're a bootstrapped company building open source solutions for spreadsheets and structured data. With over 1.5M unique monthly visitors, companies across the business world turn to us for challenging data processing problems. Over the last 10 years, we have pushed the boundaries of JavaScript and the web.

    In this role, you will master new and established technologies while working on high-impact projects used by millions of people across the world. Balancing research and engineering, you will design and implement creative solutions that draw from your academic and professional experience.

    https://sheetjs.com/careers/ more details

  • Help to draw graph in reactjs from data in excel sheet
    1 project | /r/programminghelp | 22 Jan 2023
  • PDF, Excel, Docx generate on React and Node js
    3 projects | dev.to | 18 Jan 2023
    For more, you can visit xlsx documentation Link.
  • Active data pull from excel to html charts
    2 projects | /r/CodingHelp | 18 Jan 2023
    There are libraries like https://github.com/SheetJS/sheetjs to parse excel and https://www.chartjs.org/ for all kinds of charts/graphs. Not really much HTML involved here.. the markup gets generated by the chart library.

What are some alternatives?

When comparing ndjson-spec and SheetJS js-xlsx you can also consider the following projects:

hsv5 - HTML5 Based Alternative to CSV, TSV, JSONL, etc

ExcelJS - Excel Workbook Manager

tplant - Typescript to plantuml

HANDSONTABLE - JavaScript data grid with a spreadsheet look & feel. Works with React, Angular, and Vue. Supported by the Handsontable team âš¡

rson - Rust Object Notation

Jspreadsheet CE - Jspreadsheet is a lightweight vanilla javascript plugin to create amazing web-based interactive tables and spreadsheets compatible with other spreadsheet software.

odiff - The fastest pixel-by-pixel image visual difference tool in the world.

Luckysheet - Luckysheet is an online spreadsheet like excel that is powerful, simple to configure, and completely open source.

parquet-wasm - Rust-based WebAssembly bindings to read and write Apache Parquet data

ag-Grid - The best JavaScript Data Table for building Enterprise Applications. Supports React / Angular / Vue / Plain JavaScript.

node-skeleton - Starter skeleton for Node applications

React Data Grid - Feature-rich and customizable data grid React component