
Security News
Potemkin Understanding in LLMs: New Study Reveals Flaws in AI Benchmarks
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
table2array
Advanced tools
Node.js utility to convert HTML table to Javascript array.
npm install table2array
import table2array from 'table2array'
const table = `<table>
<thead>
<tr>
<th>Name</th>
<th>Age</th>
</tr>
</thead>
<tbody>
<tr>
<td>Chester</td>
<td>41</td>
</tr>
<tr>
<td>Steve</td>
<td>56</td>
</tr>
</tbody>
</table>`
const array = table2array(playlist)
console.log(array)
Output:
[
["Name", "Age"],
["Chester", "41"],
["Steve", "56"]
]
Parent | Child |
---|---|
Marry | Sue |
Steve | |
Tom |
[
["Parent", "Child"],
["Marry", "Sue"],
["Marry", "Steve"],
["Marry", "Tom"]
]
Monday | Tuesday | Wednesday | Thursday | Friday | Saturday | Sunday |
---|---|---|---|---|---|---|
8:00 - 17:00 | 10:00 - 13:00 | Closed |
[
["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"],
[
"8:00 - 17:00",
"8:00 - 17:00",
"8:00 - 17:00",
"8:00 - 17:00",
"8:00 - 17:00",
"10:00 - 13:00",
"Closed"
]
]
Monday | Tuesday | Wednesday | Thursday | Friday | Saturday | Sunday |
---|---|---|---|---|---|---|
Superlift Off-Road Adventures | The American Car Prospector | Formula One Drift | ||||
Lund International Truck and Jeep Show | Hooked On Dirt | Car Files | World of Trucks |
[
["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"],
[
"Superlift Off-Road Adventures",
"Superlift Off-Road Adventures",
"Superlift Off-Road Adventures",
"Superlift Off-Road Adventures",
"The American Car Prospector",
"The American Car Prospector",
"Formula One Drift"
],
[
"Lund International Truck and Jeep Show",
"Hooked On Dirt",
"Car Files",
"Car Files",
"The American Car Prospector",
"The American Car Prospector",
"World of Trucks"
]
]
npm test
If you find a bug or want to contribute to the code or documentation, you can help by submitting an issue or a pull request.
FAQs
Converts HTML table to Javascript array
We found that table2array 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
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.