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.
react-html-table-to-excel
Advanced tools
Small react component for converting and downloading HTML table to Excel file
Provides a client side generation of Excel (.xls) file from HTML table element.
No additional dependencies
npm install --save react-html-table-to-excel
A list of available properties can be found below. These must be passed to the containing ReactHTMLTableToExcel
component.
Property | Type | Description |
---|---|---|
table | string | ID attribute of HTML table element. |
filename | string | Name of Excel file. |
sheet | string | Name of Excel sheet. |
id | string | ID attribute of button element. |
className | string | Class attribute of button element. |
buttonText | string | Button text. |
import React, {Component} from 'react';
import ReactHTMLTableToExcel from 'react-html-table-to-excel';
class Test extends Component {
constructor(props) {
super(props);
}
render() {
return (
<div>
<ReactHTMLTableToExcel
id="test-table-xls-button"
className="download-table-xls-button"
table="table-to-xls"
filename="tablexls"
sheet="tablexls"
buttonText="Download as XLS"/>
<table id="table-to-xls">
<tr>
<th>Firstname</th>
<th>Lastname</th>
<th>Age</th>
</tr>
<tr>
<td>Jill</td>
<td>Smith</td>
<td>50</td>
</tr>
<tr>
<td>Eve</td>
<td>Jackson</td>
<td>94</td>
</tr>
</table>
</div>
);
}
}
export default Test
FAQs
Small react component for converting and downloading HTML table to Excel file
The npm package react-html-table-to-excel receives a total of 6,138 weekly downloads. As such, react-html-table-to-excel popularity was classified as popular.
We found that react-html-table-to-excel 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.