
Security News
The AI Industry Is Betting on Open Weights
An open letter signed by 50 companies, from NVIDIA and Microsoft to Mistral and Hugging Face, urges Washington not to restrict open weight AI.
table-size-layout
Advanced tools
Calculate width for every columns (or height for every rows) based on given data
Calculate column width or row height based on given parameters.
npm install --save table-size-layout
ES6/Webpack
import Layout from 'table-size-layout';
Node.js
const Layout=require('table-size-layout');
Script Tag
<script type='text/javascript' src='./dist/index.js'></script>
const layout = new Layout();Initialize a new instance of Layout() without size configuration.
const layout = new Layout(conf);Initialize a new instance of Layout() with size configuration.
toJSON()Return a copy of the size configuration in use, can be used with JSON.stringify().
layout(size)Return the calculated sizes for each column.
Parameters
size - Size of the container, must be a number greater than 0.Returns
An array contains sizes for each column.
Throws
TypeError - If size parameter is not a number.RangeError - If size parameter is not greater than 0.set(conf)Set configuration of each column.
Parameters
conf - A non-empty array contains size configurations for each column.Returns
A reference to this instance for chaining.
Throws
TypeError - If conf is not a non-empty array or array contains element with data in wrong type.RangeError - If conf array contains element with either minSize, maxSize, size parameter not greater than 0.FAQs
Calculate width for every columns (or height for every rows) based on given data
The npm package table-size-layout receives a total of 1 weekly downloads. As such, table-size-layout popularity was classified as not popular.
We found that table-size-layout demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.

Security News
An open letter signed by 50 companies, from NVIDIA and Microsoft to Mistral and Hugging Face, urges Washington not to restrict open weight AI.

Security News
/Research
A fake corepack.org site is impersonating the Node.js tool and delivers an infostealer and proxyware to developers who download it.

Research
/Security News
A large-scale campaign abused GitHub Actions in compromised repositories to exploit CVE-2026-41940 in cPanel and WHM and steal server credentials.