
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
react-excel-renderer
Advanced tools
A react library to render and display excel sheets on webpage
A react library to render and display excel sheets on webpage
npm install react-excel-renderer --save
import {OutTable, ExcelRenderer} from 'react-excel-renderer';
input
element in the render function of your class and pass an onChange
handler<input type="file" onChange={this.fileHandler.bind(this)} style={{"padding":"10px"}} />
onChange
handler, invoke the ExcelRenderer
function and provide file object from the event handler to the ExcelRenderer
function to obtain JSON data from sheet fileHandler = (event) => {
let fileObj = event.target.files[0];
//just pass the fileObj as parameter
ExcelRenderer(fileObj, (err, resp) => {
if(err){
console.log(err);
}
else{
this.setState({
cols: resp.cols,
rows: resp.rows
});
}
});
}
<OutTable data={this.state.rows} columns={this.state.cols} tableClassName="ExcelTable2007" tableHeaderRowClass="heading" />
Note: Once the JSON data is obatined, you can also use other options to render them instead of the OutTable component. For example, CanvasDataGrid provides various features to render tabular data.
Ashish Deshpande - Initial work - Ashish's Github Profile
This project is licensed under the MIT License - see the LICENSE.md file for details
FAQs
A react library to render and display excel sheets on webpage
The npm package react-excel-renderer receives a total of 5,049 weekly downloads. As such, react-excel-renderer popularity was classified as popular.
We found that react-excel-renderer 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.