abrwn

abrwn/get-file-object-from-local-pa...

Create a JS File object instance from a local path using Node.js

JavaScript
17
3
MIT License

This utility enables creating a JavaScript `File` object from a local file system path when using Node.js in conjunction with a frontend client. It bridges the gap between Node's `fs` module and the browser's `File` object by providing a `LocalFileData` constructor for Node and a `constructFileFromLocalFileData` function for the browser. This is particularly useful for Electron applications that need to process files in the main thread and send them to the renderer thread for further handling or upload.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies

Support the repos that depend on this repository

Top contributors

No contributors yet

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet