This is a port of luckperms-rest that supports ES6 imports.
Node.JS client for the Luckperms rest-api project.
Using NPM:
$ npm install --save luckperms-rest Using yarn:
$ yarn add luckperms-rest import { LuckpermsClient } from "@chezzer/luckperms-rest"; let client = new LuckpermsClient({ url: "http://my-server:8080", apiKey: "<your API key>", }); async function main() { let userList = await client.getUsers(); for (const uuid of userList) { let user = await client.getUser(uuid); let flyNodes = user.nodes.filter( (node) => node.key === "essentials.fly" ); if (flyNodes.length) { await client.deleteUserNodes(uuid, flyNodes); } } } main();See the API Documentation.