pihole
v1.0.0
Published
PiHole API Client
Downloads
4
Readme
PiHole API Client for NodeJS
Available Functions
Supports all Functions defined here.
How to use Auth?
Pass your WEBPASSWORD
from /etc/pihole/setupVars.conf
as first parameter:
const PiHole = require('pihole');
(async function test() {
const pihole = new PiHole(process.env.WEBPASSWORD)
console.log(await pihole.getAllQueries());
})();