UNPKG

wibusoft

Version:

our features are few but we provide the best and it is not uncommon to find in other npmjs

14 lines (12 loc) 359 B
const fetch = require('node-fetch') module.exports = { async superSusChecker(id) { return new Promise(async (resolve, reject) => { const response = await fetch('https://pay.supersus.io/api/role/detail/' + id) const json = await response.json() if (json.code === 0) { resolve(json.data) } else reject(null) }) }, }