Security News
Research
Supply Chain Attack on Rspack npm Packages Injects Cryptojacking Malware
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
remotestorage-module-shares
Advanced tools
A remoteStorage data module for sharing of files.
All shares are stored with a timestamp prefix. For images, thumbnails are created and stored in a subdirectory.
Promise
⏏Promise
⏏Promise
⏏string
⏏Promise
⏏Stores a shared file
Kind: Exported function
Returns: Promise
- A promise, which will be fulfilled with the absolute
URL of the newly uploaded file (see )
Access: public
Param | Type | Description |
---|---|---|
mimeType | string | Content type of the file |
name | string | Filename |
data | ArrayBuffer | File contents |
Example
remoteStorage.shares.storeFile(mimeType, filename, content)
.then((url) => { console.log(`successfully stored file at ${url}`)
Promise
⏏Remove a file
Kind: Exported function
Access: public
Param | Type | Description |
---|---|---|
name | string | The filename |
Promise
⏏List all shared files
Kind: Exported function
Returns: Promise
- Resolves with an array containing the filenames
Access: public
string
⏏Get the absolute URL of a file.
Kind: Exported function
Returns: string
- The absolute URL of the file
Access: public
Param | Type | Description |
---|---|---|
name | string | the filename |
FAQs
remoteStorage.js module for sharing images and other files
The npm package remotestorage-module-shares receives a total of 2 weekly downloads. As such, remotestorage-module-shares popularity was classified as not popular.
We found that remotestorage-module-shares demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.
Security News
Sonar’s acquisition of Tidelift highlights a growing industry shift toward sustainable open source funding, addressing maintainer burnout and critical software dependencies.