libWPKG.js - JavaScript library
Small library for work with WPKG XML configuration files.
npm install --save libwpkg
Small how to
More examples here.
// Enable WPKG modulelet wpkg = ;
Hosts
Example of Hosts XML file is here.
How to import and work with Hosts
object:
// Import XML filewpkghosts; // Get all hostslet hosts_all = wpkghosts;console; // Get single host by hostnamelet host_single = wpkghosts;console;
Profiles
Example of Profiles XML file is here.
How to import and work with Profiles
object:
wpkgprofiles; let profiles_all = wpkgprofiles;console; let profile_single = wpkgprofiles;console;
Get Support!
- Discord - Join us on Discord.
- GitHub Issues - Got issues? Please tell us!
Some links
- Main the WPKG website - https://wpkg.org/
- WPKG documentation page - https://wpkg.org/Documentation
- Article on Wikipedia - https://en.wikipedia.org/wiki/WPKG_(software)