
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.