cpg-npm
v1.0.7
Published
cpg-api module for npm
Downloads
2
Readme
⭐ | 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
⚙ | 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/
.