Socket
Socket
Sign inDemoInstall

despan

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

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
decreased by-83.33%
Maintainers
1
Created
Weekly downloads
 

Readme

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

Last updated on 06 Mar 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc