Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ziad-gg/djs.db
It is a easy and quick storage unit that relies on objects to store data in JSON format
https://github.com/ziad-gg/djs.db
db free-storage
Last synced: 19 days ago
JSON representation
It is a easy and quick storage unit that relies on objects to store data in JSON format
- Host: GitHub
- URL: https://github.com/ziad-gg/djs.db
- Owner: ziad-gg
- Created: 2024-09-09T01:40:54.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-09-11T23:24:08.000Z (2 months ago)
- Last Synced: 2024-10-16T15:12:00.827Z (about 1 month ago)
- Topics: db, free-storage
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/djs.db?activeTab=readme
- Size: 23.9 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Welcome
## What is djs.db ?
- It is a easy and quick storage unit that relies on `objects` to store data in **JSON** format## Installation
- You need to install the package on your project
```sh-session
npm install djs.db
yarn add djs.db
```# Uploading files
```js
const { Client } = require('djs.db');
require('dotenv').config();const client = new Client(process.env.TOKEN, process.env.GUILDID);
async function main() {
const build = await client.init();console.log(`Connected with ${build.clinet.name} to ${build.guild.name}`);
const video = 'dump/Dumo.mp4';
const output = 'output.mp4';
const id = await client.document.write(video, {
cb: progress,
name: output,
});function progress(chunks, current, done) {
const percentage = (current / chunks) * 100;
console.log(`Progress: ${percentage.toFixed(2)}%, completed: ${done}`);
};const chunksLength = await client.document.read(id);
console.log(chunksLength);
};main();
```