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

djs.db

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

djs.db

- It is a easy and quick storage unit that relies on `objects` to store data in **JSON** format

  • 1.1.2
  • latest
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

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
npm install djs.db
yarn add djs.db

Uploading files

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();

FAQs

Package last updated on 11 Sep 2024

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