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.
jsdatalinker
Advanced tools
JSDataLinker is the ultimate JavaScript package for database connectivity. Designed to work seamlessly with Firebase and other databases, JSDataLinker provides developers with a powerful toolkit for building robust applications. Streamline your frontend and backend development with JSDataLinker.
To install JSDataLinker, simply run:
npm install jsdatalinker
import { Storage } from 'jsdatalinker';
// Initialize Firebase Storage instance
const storage = new Storage('path/to/storage');
// Upload a base64-encoded image
const uploadResult = await storage.uploadByte8Array('path/to/image.jpg', 'base64EncodedImageData');
console.log(uploadResult); // [true, 'downloadURL']
// Upload a file
const file = ...; // File object
const uploadFileResult = await storage.uploadFile(file, 'path/to/file');
console.log(uploadFileResult); // [true, 'downloadURL']
// Get download URL of a file
const downloadURLResult = await storage.getDownloadURL('path/to/file');
console.log(downloadURLResult); // [true, 'downloadURL']
// Delete a file
const deleteResult = await storage.deleteFile('path/to/file');
console.log(deleteResult); // [true, NaN]
import { RealTime } from "jsdatalinker";
// Initialize Firebase Realtime Database instance
const database = new RealTime("path/to/database");
// Create a new item
const createResult = await database.create({ name: "John", age: 30 });
console.log(createResult); // [true, 'newItemId']
// Read all items
const readResult = await database.read();
console.log(readResult); // [true, [{ id: 'itemId', name: 'John', age: 30 }]]
// Update an item
const updateResult = await database.update("itemId", { name: "Jane", age: 35 });
console.log(updateResult); // [true, true]
// Delete an item
const deleteResult = await database.delete("itemId");
console.log(deleteResult); // [true, true]
Contributions are welcome! Feel free to open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
Bridging Innovation, Connecting Data
The npm package jsdatalinker receives a total of 0 weekly downloads. As such, jsdatalinker popularity was classified as not popular.
We found that jsdatalinker demonstrated a healthy version release cadence and project activity because the last version was released less than 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.