
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@samhuk/table
Advanced tools
A vanilla JS data table component.

npm i @samhuk/table
Basic usage (default column options, no custom configuration, etc.):
import { createTable } from '@samhuk/table'
const element = document.createElement('div')
// Create table with 3 column and 3 rows of data
const table = createTable({
columnOrdering: ['A', 'B', 'C'],
initialData: [
{ a: 1, b: 2, c: 3 },
{ a: 4, b: 5, c: 6 }
{ a: 7, b: 8, c: 9 }
]
})
element.appendChild(table.rendered.element)
There are two main ways of importing the styles for the component into your project. One can either:
import the scss entrypoint or css bundle file into your .ts or .js file. This is supported by all the main bundlers out there like webpack and esbuild as long as you have the required loader/plugin for scss or css files configured.
// Import the scss entrypoint file from the src
import 'node_modules/@samhuk/table/src/component/styles/index.scss'
// Import the css bundle file
import 'node_modules/@samhuk/table/dist/styles.css'
@import the scss entrypoint file into your scss file.
@import '~@samhuk/table/src/component/styles/index.scss';
One must have node and npm installed. Get node from nodejs.org.
Run npm i
Run npm start
Try navigating to localhost:4001.
FAQs
A vanilla JS data table UI component
The npm package @samhuk/table receives a total of 4 weekly downloads. As such, @samhuk/table popularity was classified as not popular.
We found that @samhuk/table 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.