Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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>`

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
increased by50%
Maintainers
1
Weekly downloads
 
Created
Source

despan

Deconstruct rowSpan and colSpan of cells in <table>.

A1C1
C2D2
A3B3D3

A1A1C1C1
A1A1C2D2
A3B3C2D3

Installation

npm i luncheon/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