1.0.1 • Published 3 years ago

@ibaraki-douji/n0va v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

N0va Desktop

Download any background from N0vaDesktop / Lumi

Getting started

npm i @ibaraki-douji/n0va --save

Usage

Import the lib

const N0va = require('@ibaraki-douji/n0va')

Wait to the lib to retreive the datas

const N0va = require('@ibaraki-douji/n0va')

N0va.waitStart().then(() => {console.log("Ready")})

Data style

{
    practice: {
        count: {
            dynamic: number,
            static: number,
            all: number
        },
        datas: Array<{
            type: "live" | "static",
            name: string,
            covers: {
                lite: string,
                hd: string
            },
            quality: Array<{
                quality: "1080P" | "2K" | "4K",
                size: number,
                url: string
            }>
        }>
    },
    featured: {
        count: {
            dynamic: number,
            static: number,
            all: number
        },
        datas: Array<{
            type: "live" | "static",
            name: string,
            covers: {
                lite: string,
                hd: string
            },
            quality: Array<{
                quality: "1080P" | "2K" | "4K",
                size: number,
                url: string
            }>
        }>
    },
    gaming: {
        count: {
            dynamic: number,
            static: number,
            all: number
        },
        datas: Array<{
            type: "live" | "static",
            name: string,
            covers: {
                lite: string,
                hd: string
            },
            quality: Array<{
                quality: "1080P" | "2K" | "4K",
                size: number,
                url: string
            }>
        }>
    }
}

Get data

const N0va = require('@ibaraki-douji/n0va')

// WINDOWS
N0va.windowsData

// Android
N0va.androidData

Convert NDF file to image or video

const N0va = require('@ibaraki-douji/n0va')

N0va.NDFToMP4(N0va.windowsData.featured.datas.filter(e => e.type == "live")[0].quality[0].url).then(buffer => {
// ...
})

Exemple

const N0va = require('@ibaraki-douji/n0va');

// MAKE A ASYNC FUNCTION AT START
(async () => {
   await N0va.waitStart();
   console.log("Windows version: " + N0va.versions.pc.version);
   console.log("Android version: " + N0va.versions.android.version);
   
   console.log("Windows featured image count: " + N0va.windowsData.featured.count.all);
})()

More Help and Support

Discord : https://discord.gg/mD9c4zP4Er

Ask me for an update or to fix a bug in the Discord server