javaScratch is a Node.js Javascript module for interacting with the Scratch API. It includes all important API features, such as cloud connections, editing projects, and getting user messages.

javaScratch requires an account to run, and necessitates that a username and password are provided. The username and password are only sent to Scratch via secure methods and are never sent to any other site. (You can validate this yourself on the public github repo)

Note that javaScratch does not allow you to create new accounts, post a "view" to projects, or interact with the forums. This is to prevent malicious usage and abuse of the Scratch API.
    Paste this code into your terminal to install the javaScratch module.
    npm i https://github.com/ahypnoman/javaScratch
    Paste this code into your script to import the Session function.
    const Session = require("javascratch").Session
    (The fact these are the same size is entirely a coincidence :P)