jericojs

1.0.0 • Public • Published

JericoJs SDK

This SDK provides a way to communicate with your Jerico-Server

Installation

npm i jericojs

Jerico-Server

This Library Uses custom server that is built for JericoJs. You can download the server code from here

Usage

Jerico Instance

const JericoJs = require("jericojs");

const Jerico = new JericoJs({
    host, // Host URL of Jerico-Server
});

Creating Jerico Document

const document = await Jerico.create({
    name: "Test",
    description: "Test Document"
})

Document API

await document.set({
    key,
    value,
})

await document.get({
    key
})

await document.getAll()

await document.remove({
    key
})

await document.removeAll()

await document.setAll({
    key1: value1,
    key2: value2
})

Jerico API

await Jerico.create({
    name
    description
})

await Jerico.createIfNotExists(documentId, {
    name,
    description
})

await Jerico.exists(documentId);

await Jerico.info(documentId);

await Jerico.delete(documentId);

/jericojs/

    Package Sidebar

    Install

    npm i jericojs

    Weekly Downloads

    1

    Version

    1.0.0

    License

    ISC

    Unpacked Size

    8.03 kB

    Total Files

    8

    Last publish

    Collaborators

    • henil0604