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-file-base64
Advanced tools
React Component for Converting Files to base64. It's based on Dev Mozilla Website
You can import react-file-base64.js to your react component file like this and process it with your preprocessor.
You can install it via NPM
npm install react-file-base64
import React from 'react';
import ReactDOM from 'react-dom';
import FileBase64 from 'react-file-base64.js';
class App extends React.Component {
constructor() {
super()
this.state = {
files: []
}
}
// Callback~
getFiles(files){
this.setState({ files: files })
}
render() {
return (
<FileBase64
multiple={ true }
onDone={ this.getFiles.bind(this) } />
)
}
}
ReactDOM.render(<App />, document.getElementById("app"))
Is your component support multiple file?
Callback Function When all files have been proceed
Just Contact Me At:
MIT Copyright (c) 2016 - forever Naufal Rabbani
FAQs
React Component for Converting File to base64
The npm package react-file-base64 receives a total of 4,196 weekly downloads. As such, react-file-base64 popularity was classified as popular.
We found that react-file-base64 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.