1.0.0 • Published 3 years ago

grownpm v1.0.0

Weekly downloads
5
License
ISC
Repository
github
Last release
3 years ago

GrowNpm

🔧 Installation

npm install grownpm

📄 About

GrowNpm is simple npm package about the information of the Growtopia status

📎 Usage

📕 Basic Information

const gt = require("grownpm");

// Type: [ Promise ]
gt.then(data => {
    console.log(data.online_user);
    // Output: 57144
}).catch(error => {
    console.log(error);
})

📚 All Informations

const gt = require("grownpm");

//Type: [ Promise ]
gt.then(data => {
    console.log(data);
    /*
    Output: 
    {
        online_users: '57144',
        wotd: {
            name: 'faerietale',
            image: 'https://www.growtopiagame.com/worlds/faerietale.png'
        },
        time: {
            full_time: 'Jan 5, 2021 2:02 AM',
            date: 'Jan 5, 2021',
            time: '2:02:13 AM'
        }
    }
    */
}).catch(error => {
    console.log(error);
})