Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
replit-store
Advanced tools
Replit DB client is a simple way to use Replit's Database in your Node.js repls.
const { Client } = require("replit-store");
const client = new Client();
client.set("key", "value").then(async () => {
const key = await client.get("key");
console.log(key);
});
class Client(String url?)
The parameter url is an optional custom DB URL.
Functions
These are the methods which a client instance provides.
get(String key, Object config?)
Gets a value.
client.get("key", { raw: false });
set(String key, Any value)
Sets a key to a value.
delete(String key)
Deletes a key.
list(Object config?)
Lists all of the keys, or all of the keys starting with prefix
if specifed.
client.list({ prefix: "" });
empty()
Clears the database.
getAll()
Get all key/value pairs and return as an object.
setMany(Object obj)
Sets multiple key/value pairs from an object.
deleteMany(Array keys)
Deletes multiple keys.
npm i
npm run test
FAQs
Client for the Replit Database
The npm package replit-store receives a total of 0 weekly downloads. As such, replit-store popularity was classified as not popular.
We found that replit-store 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.