@scratchapijs/scratchapi.js

1.0.2 • Public • Published

ScratchAPI.js

A great library for the Scratch API.

About

This is a Node.js module that makes it easy to access the Scratch API. (It is under development.)

Features

This library allows you to do the following:

  • Log in to your Scratch account.
  • Receive notifications to your account.
  • Modify project.
  • Get user / project data.

Example usage

const { Client } = require('@scratchapijs/scratchapi.js');
const client = new Client();

client.on('ready', async () => {
  console.log('Ready!');

  console.log(client.user);
  console.log(client.user.history.joinedAt);
  console.log(client.user.profile.url);
  console.log(client.user.profile.avatar);
  console.log(client.user.profile.avatarURL());
});

client.on('message', message => {
  console.log(message);
})

client.login('<username>', '<password>');

License

This library is licensed under the Apache License 2.0.

Acknowledgements

This library is based on the design of Discord.js. -Thanks to Discord.js, the awesome library.

Dependencies

The following modules are contained in the dependencies:

Others

The following services are being used for development:

Readme

Keywords

none

Package Sidebar

Install

npm i @scratchapijs/scratchapi.js

Weekly Downloads

0

Version

1.0.2

License

Apache-2.0

Unpacked Size

53.1 kB

Total Files

47

Last publish

Collaborators

  • kakurenbo_uni
  • itta611