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

3.1.0 • Public • Published

Meowclient Test

A feature-rich library to connect to Scratch.

Getting Started

Follow the steps below:

⏳ Installation

If you run this install command you will get the latest version of meowclient in your package.json.

 npm install meowclient

Example (async)

import { ScratchSession, Profile } from "meowclient";
const session = new ScratchSession();
await session.init("user", "pass");
const me = new Profile(session, session.username);
console.log("My status is " + (await me.getStatus()));

Some features are available without logging in if you don't run the session.init function.

The CJS way (if you still use it)

const { ScratchSession } = require("meowclient");
const session = new ScratchSession();
await session.init("user", "pass");
const me = new Profile(session, session.username);
// User.getStatus gets the status of the user, either "New Scratcher", "Scratcher" or "Scratch Team"
console.log("My status is " + (await me.getStatus()));

Note

Automating social actions such as loving, favouriting, commenting, or following users is not allowed in the Scratch Terms of Use so I won't add those features to meowclient unless you have a good reason, although if you know how to use the Scratch API you can definitely make your own fetch requests with the session.

Thanks

Thanks to Scratchclient and Raihan142857 (CubeyTheCube) for a lot of the login stuff!

Readme

Keywords

none

Package Sidebar

Install

npm i meowclient

Weekly Downloads

1

Version

3.1.0

License

MIT

Unpacked Size

77.9 kB

Total Files

7

Last publish

Collaborators

  • webdev03