demonlist
TypeScript icon, indicating that this package has built-in type declarations

3.0.1 • Public • Published

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
}

/demonlist/

    Package Sidebar

    Install

    npm i demonlist

    Weekly Downloads

    10

    Version

    3.0.1

    License

    MIT

    Unpacked Size

    26.1 kB

    Total Files

    15

    Last publish

    Collaborators

    • loops6340