Socket
Socket
Sign inDemoInstall

despan

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

despan

deconstruct `rowSpan` and `colSpan` of cells in `<table>`


Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

despan

Deconstruct rowSpan and colSpan of cells in <table>.

Demo

A1C1
C2D2
A3B3D3

A1A1C1C1
A1A1C2D2
A3B3C2D3

Installation

npm i despan

Usage

import { despan } from "despan";

/** @type HTMLTableCellElement[][] */
const rows = despan(document.querySelector("table")); // can be a <table>, <thead>, <tbody> or <tfoot>

for (const row of rows) {
  for (const cell of row) {
    console.log(cell);
  }
}

License

WTFPL

Keywords

FAQs

Package last updated on 08 Feb 2024

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