
Security News
Feross on the 10 Minutes or Less Podcast: Nobody Reads the Code
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.
react-file-browser-component
Advanced tools
A reusable react component for browsing files in the web browser.
Click here for a example project.
| Name | Type | Description | Example |
|---|---|---|---|
| currentDirectory | string | The current directory of the file browser (displayed in header) | /Users/ |
| currentFiles | array of objects with keys: name, isFolder, dateModified, size, kind | The current files that are shown in the file browser | [{ name: 'example.pdf', isFolder: false, dateModified: 'Mon 7 Jun 2021', size: '123 KB', kind: 'Document' }] |
| locations | array of objects with keys: device, label | The available locations (drives). Shown in the left side bar. | [{ device: 'C:', label: 'WinDrive' }] |
| nextEnabled | bool | Next button in header is enabled or not | true |
| previousEnabled | bool | Previous button in header is enabled or not | true |
| onFileClick | callback func with parameter: file | Callback for when a file is clicked in the table | (file) => console.log(file) |
| onLocationClick | callback func with parameter: location | Callback for when a drive location is clicked | (location) => console.log(location) |
| onNextClick | callback func | Callback for when next button is clicked | () => console.log('next clicked') |
| onPreviousClick | callback func | Callback for when previous buttin is clicked | () => console.log('previous is clicked') |
FAQs
A react file browser component
We found that react-file-browser-component 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
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.