New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

quickonline

Package Overview
Dependencies
Maintainers
4
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

quickonline

Simple package to store quick.db data online.

  • 1.1.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
decreased by-38.46%
Maintainers
4
Weekly downloads
 
Created
Source
Atlanta

Quick Online

discord website npm license CodeFactor

An online version of quick.db to store data online

How to use 📚

const quickonline = require("quickonline"); // Requiring our package.

const server = {
  port: 8080, // The port key.
  username: "quick", //  Username credentials.
  password: "online", // Password credentials.
};

const host = new quickonline.host(server); // Defining the variable for our host.
host.start(); // Starting up the host and saving it.

Example ✏️

const quickonline = require("quickonline"); // Requiring our package.

const server = {
  url: "database-url", // Our database URL for connecting.
  username: "quick", // Username credentials.
  password: "online", // Password credentials.
};

const dbo = new quickonline.bot(server);

async function qdbo() {
  dbo.set("quick", "online"); // Setting "online" for the "quick" variable in the database.
  console.log(await dbo.get("quick")); // Logging the value of the "online" variable.
}
qdbo();

dbo.set("math", 25); // Setting the number "25" for the "math" variable in the database.

dbo.add("math", 50); // Adding "50" to the math variable, the new value will be "75".

dbo.subtract("math", 25); // Subtracting "25" from the "math" variable, the new value will be "50".

dbo.delete("math"); // Deleting the "math" variable from the database, so it's value no longer exists.

dbo.has("math"); // checks whether a key have some value.

dbo.push("math", "fun"); // push "fun" value to the "math" array.

dbo.pull("math", "fun"); // pull "fun" value from the "math" array.

dbo.startsWith("qu"); // fetch each key which starts with "qu". You can add range to your fetch (default is 10). Example : dbo.startsWith("qu", 5)

dbo.check(); // checks whether the database url is working or not.

dbo.all(); // fetches the whole data from your database.

dbo.stop(); // stop your database. (You can use it as database restart with pm2.)

dbo.ping(); // returns your database latency.

Updates

  • Added support for glitch.com
  • Moved from superagent to node-fetch

Reasons Why 📋

  • Handy and simple to use.
  • Quick and Easy setup with no hastle.
  • Everything over internet, means no local storage.

Creators 💖

  • ! Darkboy🍭#9966
  • Sujal Goel#0001
  • AzizJaber.#5414
  • Lebyy_Dev#0899
Note :

Keywords

FAQs

Package last updated on 21 Jan 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc