1.0.7 • Published 2 years ago

cpg-npm v1.0.7

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

⭐ | cpg-npm

cpg-npm is being used to intereact with CPG-API.

📝| Examples

Caching Configs

import CPG from "cpg-npm";

// Set config, then you are ready to use cpg
CPG.config.set({
    admin: {
        password: "password for admin on cpg",
        username: "username for admin on cpg"
    },
    cpg: {
        // host for cpg, example: cpg.example.com
        host: "localhost:8080",
        // http or https
        protocol: "http"
    },
    // If you want to use rest api, set this to true
    isUsingRest: true,
    // If you want to use graphql instead, set to true
    isUsingGraphql: false,
    // Rest api version, default is v2
    rest: {
        version: "v2"
    },
});

📢 | Contribute

Want to contribute? Great! You can contribute by forking this repository, then make changes and make a PR!

Or simple ask on our discord server.

🔮 | Discord

Discord

⚙ | Tolfix

Tolfix is a company focusing about IT, Development and Networking, we drive to help others with their problems when it comes to IT and love contributing to others. Want to find more information about us you can visit us at https://tolfix.com/.

1.0.7

2 years ago

1.0.6

2 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.0

3 years ago