quickonline

Simple package to store quick.db data online.

Usage no npm install needed!

<script type="module">
  import quickonline from 'https://cdn.skypack.dev/quickonline';
</script>

README

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 :