Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
remote-sqlite-database
Advanced tools
Readme
npm install https://github.com/Tomato6966/remote-sqlite-database
npm install remote-sqlite-database
const { remoteCacheServer } = require("remote-sqlite-database");
const Server = new remoteCacheServer({
username: "TheUserNameForTheCacheServer",
password: "ThePasswordForTheCacheServer",
name: "databaseName",
dataDir: "./path/to/database/",
port: 4040, // Any port
tls: true,
debug: false // if enabled u see all the actions ;)
});
// Following Events are optional
Server
.on("serverReady", () => {
console.log("DatabaseCacheServer ready and waiting for connections");
})
.on("serverError", (error) => {
console.error("DatabaseCacheServer error, ERROR:\n", error, "\n---\n");
})
.on("serverClose", (reason) => {
console.log("DatabaseCacheServer closed");
})
.on("serverConnect", (connection, payload) => {
console.log("DatabaseCacheServer a Client Connected");
})
.on("serverDisconnect", (connection, reason) => {
console.log("DatabaseCacheServer a Client Disconnected");
})
.on("serverMessage", (message) => {
// console.log("DatabaseCacheServer, received a Message", message);
})
.on("serverRequest", async (request, response, client) => {
// console.log("DatabaseCacheRequest, received a Request", request);
});
const { remoteCacheClient } = require("remote-sqlite-database");
const client = new remoteCacheClient({
username: "db_cache",
password: "db_cache",
host: "localhost",
port: 5000,
tls: true,
keyPathing: true, // true|false ... enables if the key contains a "." that it's splitted to a path, e.g.: "hello.world.hi" --> key = "hello", path = "world.hi", db.get("hello") --> {world: {hi: "value"}}
});
//keyPathing should be set to false, if you want to do "key.hello" as a key
// following events are optional
client
.on("cacheReady", () => {
console.log("DATABASECACHECLIENT ready and connected");
})
.on("cacheError", (error) => {
console.error("DATABASECACHECLIENT error, ERROR:\n", error, "\n---\n");
})
.on("cacheClose", (reason) => {
console.log("DATABASECACHECLIENT closed, REASON?:\n", reason, "\n---\n");
})
.on("cacheMessage", (message) => {
console.log("message", message);
})
.on("cacheRequest", async (request, response, client) => {
console.log("REQUEST", request);
});
// example usage
async function yourProgram(){
await client.set("hi", "bye").then(console.log).catch(console.error);
await client.get("hi").then(console.log).catch(console.error);
await client.set("array", []).then(console.log).catch(console.error);
await client.push("array", "element").then(console.log).catch(console.error);
await client.push("array", "element2").then(console.log).catch(console.error);
await client.size().then(console.log).catch(console.error);
await client.get("array").then(console.log).catch(console.error);
await client.all().then(console.log).catch(console.error);
}
yourProgram();
FAQs
A remote nodejs Cached sqlite Database Server, for you to have your perfect MAP Cache Saved and useable remotely. Easy Server and Client Creations, fast, stores the Cache before stopping and restores it again! it uses ENMAP
The npm package remote-sqlite-database receives a total of 2 weekly downloads. As such, remote-sqlite-database popularity was classified as not popular.
We found that remote-sqlite-database 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.