0.1.8 • Published 4 years ago

glitch-info v0.1.8

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

Under Development

Glitch Info for Glitch

A simple package that returns info on Glitch profile, teams and collections in JSON format.

This is my first NPM package, so you'll have to bear with me if there are any errors or loopholes!

Warning: this package uses unstable API that hasn't been officially released yet.

Installation

npm install glitch-info

Usage

User Profile Info

// get users
glitch.user("khalby786").then((user) => {
  console.log(user);
}).catch((err) => {
  console.error(err);
});

Glitch Team Info

// get team info
glitch.team("donutsquad").then((team) => {
  console.log(team);
}).catch((err) => {
  console.error(err);
});

Glitch Collection Info

// get collection detail
glitch.collection("username", "collection-name").then((user, collection) => {
  console.log(collection);
}).catch((err) => {
  console.error(err);
});
0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.3

4 years ago

0.1.0

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.0.1

4 years ago