Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
ocr-table-p14
Advanced tools
This student project is a React Table library converted from this jQuery plugin.
It's optimized to render live data updates without re-rendering rows.
npm install ocr-table-p14
[
{ title: 'Alien ', releaseDate: '09/12/1979', rating: '5' },
{ title: 'Blade Runner', releaseDate: '09/15/1982', rating: '5' },
{ title: 'Brazil', releaseDate: '12/18/1985', rating: '5' },
{ title: 'Soylent Green', releaseDate: '04/19/1973', rating: '5' },
]
data is an array of objects representing rows.
Each property refers to a column.
To make dates sorting work, just be careful to :
Provided you have passed the previous data array, you should set your columns array as following :
[
{ key: 'title', header: 'Title' },
{ key: 'releaseDate', header: 'Release Date' },
{ key: 'rating', header: 'Our review' },
]
import { Table } from 'ocr-table-p14'
function App() {
const dataArray = [
{ title: 'Alien ', releaseDate: '09/12/1979', rating: '5' },
{ title: 'Blade Runner', releaseDate: '09/15/1982', rating: '5' },
{ title: 'Brazil', releaseDate: '12/18/1985', rating: '5' },
{ title: 'Soylent Green', releaseDate: '04/19/1973', rating: '5' },
]
const columnsArray = [
{ key: 'title', header: 'Title' },
{ key: 'releaseDate', header: 'Release Date' },
{ key: 'rating', header: 'Our review' },
]
return <Table data={dataArray} columns={columnsArray} />
}
When data is updated, ocr-table-p14 will render last addition without re-rendering previous rows.
Just make sure one object is added at a time to render it live.
FAQs
Table rendering P14 App list
The npm package ocr-table-p14 receives a total of 2 weekly downloads. As such, ocr-table-p14 popularity was classified as not popular.
We found that ocr-table-p14 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.