demonlist
v3.0.1
Published
Unofficial package to look for things from https://pointercrate.com/
Downloads
4
Readme
Demonlist
Unofficial node package to look for things from https://pointercrate.com/
Examples:
Getting demon:
const { demons } = require('demonlist')
const getTop1Creators = async () => {
const demon = await demons.getByPosition(1)
return demon.creators
}
getTop1Creators().then(console.log)
//or
const getTartarusCreators = async () => {
const demon = await demons.getByName('tartarus')
return demon.creators
}
getTartarusCreators().then(console.log)
//The function returns a promise, you can use then() or async / await
Getting random demon:
const { demons } = require('demonlist')
const getRandomDemon = async () => {
const demon = await demons.random.getByLimit({ after: 2, limit: 4 })
console.log(demon.name, demon.position)
// Zodiac or Kenos (3 or 4)
}
// or
const getRandomDemon = async () => {
const demon = await demons.random.getByList({ list: 'main' })
console.log(demon.name, demon.position)
// random demon from main list
}