Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
tables2json
Advanced tools
Convert an HTML tables node to a javascript object or array.
npm install tables2json
npm install tables2json@latest
const { oneTable2json, allTables2json } = require("tables2json");
// import { oneTable2json, allTables2json } from "tables2json";
const tables2json = require("tables2json");
// import tables2json from "tables2json";
const tables2json = require("tables2json");
// get element by id
const table = tables2json.one('table_id'); // object
// get all tables
const tables = tables2json.all(); // array
// print
console.log( table, tables );
const { oneTable2Json, allTables2Json } = require("tables2json");
// get element by id
const table = oneTable2Json('table_id'); // object
// get all tables
const tables = allTables2Json(); // array
// print
console.log( table, tables );
// return
{
headers: [],
rows: [],
}
// usable to pdfkit-table
// https://www.npmjs.com/package/pdfkit-table
// https://github.com/natancabral/pdfkit-table#readme
Copyright (c) Natan Cabral Licensed under the MIT license.
Natan Cabral natancabral@hotmail.com https://github.com/natancabral/ |
FAQs
Convert an HTML table node to a javascript object.
We found that tables2json 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
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.