
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
html-table-to-json
Advanced tools
Extracts all tables within a provided html snippet and converts them to JSON objects.
Extracts tables from a provided html snippet and converts them to JSON objects
$ npm install html-table-to-json
const HtmlTableToJson = require('html-table-to-json');
const jsonTables = HtmlTableToJson.parse(`
<table>
<tr>
<th>Animal</th>
<th>Color</th>
<th>Name</th>
</tr>
<tr>
<td>Unicorn</td>
<td>Pink</td>
<td>Billy</td>
</tr>
<tr>
<td>Walrus</td>
<td>Orange</td>
<td>Sue</td>
</tr>
</table>
`);
console.log(jsonTables.results);
/* => [[
* {Animal: 'Unicorn', Color: 'Pink', Name: 'Billy'},
* {Animal: 'Walrus', Color: 'Orange', Name: 'Sue'}
* ]]
*/
console.log(jsonTables.count);
// => 1
Type: string
Any html snippet.
Type: object
Type: bool
Return table rows as value arrays:
// HtmlTableToJson.parse(html, { values: true })
/* => [[
* ['Unicorn', 'Pink', 'Billy'],
* ['Walrus', 'Orange', 'Sue']
* ]]
*/
HtmlTableToJson extracts table headers ( th ) to be used as JSON object keys. The first row is used when no th elements are present.
MIT © Brandon Smith
FAQs
Extracts all tables within a provided html snippet and converts them to JSON objects.
We found that html-table-to-json 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.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.