A JavaScript wrapper for the Salad.io API!

Overview

SaladWrap

A lightweight wrapper for the Salad.io API

Logo

size

Quick Links

Installation

Install saladwrap.js with npm

  npm install saladwrap.js

Install saladwrap.js with yarn

  yarn add saladwrap.js

Code Example

const { SaladWrapper } = require('saladwrap.js');
const prompt = require("prompt-sync")({ sigint: true });

(async () => {

const sw = new SaladWrapper();

await sw.connect(prompt('Please enter your email: ').toString());

await sw.verify(prompt("Enter passcode from email: ").toString());

console.log('Profile:', await sw.profile());
console.log('Balance:', await sw.balance())

})();

Console output

Profile: {
  email: 'Your Email',
  extensions: { minecraftUsername: 'M3zo' },
  id: 'Your account id,
  lastSeenApplicationVersion: '2021-09-24',
  username: 'Mezo',
  viewedReferralOnboarding: true
}
Balance: {
  currentBalance: 1.3076578183531435,
  lifetimeBalance: 1161.6255108303897
}

Maintainers

You might also like...

API wrapper for plutu.ly

Plutu-TS A tiny client for the plutu.ly API written in Typescript. ✨ Features: Tiny 1KB size gzip Works in Node.js and in Browser Built-in Typescript

May 2, 2022

🍬 Tixte Developer API Wrapper

Tixte Wrapper The best Tixte wrapper around This package was done because I wanted to use the Tixte API in a hackathon, there were already 2 packages

Apr 6, 2022

A node wrapper for the Netcup CCP API.

Netcup-node A node wrapper for the Netcup CCP API. Current support only JSON Rest API, no SOAP yet auto auth handling with support to use custom auth

Dec 22, 2022

A wrapper client for Strike's public API.

node-strike A wrapper client for Strike's public API. Usage Import the wrapper and instantiate a client. import { NodeStrike } from 'node-strike'; //

Apr 28, 2022

API wrapper for plutu.ly

Plutu-TS A tiny client for the plutu.ly API written in Typescript. ✨ Features: Tiny 1KB size gzip Works in Node.js and in Browser Built-in Typescript

May 2, 2022

A simple, easy to use wrapper for Hypixel API.

A simple, easy to use wrapper for Hypixel API.

An easy to use Hypixel API wrapper. About hypixel.ts is a NodeJS module which allows you to interact with the Hypixel API easily. Written in Typescrip

Dec 18, 2022

neverlose.cc market api wrapper

neverlose.cc market api wrapper

Neverlose.cc API This is the neverlose.cc market api wrapper written on node.js(ts) Getting started Install for npm npm install neverlose-api Then you

Feb 2, 2022

A handy wrapper for the Web Notifications API

Notify.js A handy wrapper for using the Web Notifications API. Notify.js aims to simplify requesting user permission and associated Web Notification A

Dec 4, 2022

Gyazo API wrapper made in TypeScript. *For now, only upload feature.

wrap-gyazo Gyazo API wrapper made in TypeScript. *For now, only upload feature. Installation npm i wrap-gyazo Register an application with Gyazo. Gyaz

Jan 11, 2022
Owner
null
Hemsida för personer i Sverige som kan och vill erbjuda boende till människor på flykt

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

null 4 May 3, 2022
Kurs-repo för kursen Webbserver och Databaser

Webbserver och databaser This repository is meant for CME students to access exercises and codealongs that happen throughout the course. I hope you wi

null 14 Jan 3, 2023
An open source API wrapper for TechHost API.

TechHost API Wrapper An open source API wrapper for TechHost API. Badges Installation Install techhost-api-wrapper with npm. npm install techhost-api-

Eight∞ 4 Jun 23, 2022
News API Wrapper for Violetics API News

News API Wrapper for Violetics API News

Violetics 3 Mar 23, 2022
A wrapper for valorant-api, a third-party API for getting data within Valorant. Available on npm

valorant-wrapper A wrapper for the third-party valorant-api How to Use All endpoints can be accessed off the ValAPI class. import { ValAPI } from 'val

Aircraft Overviewer 5 Nov 7, 2022
Simple wrapper for cross-browser usage of the JavaScript Fullscreen API

screenfull Simple wrapper for cross-browser usage of the JavaScript Fullscreen API, which lets you bring the page or any element into fullscreen. Smoo

Sindre Sorhus 6.7k Dec 30, 2022
⚒ A JavaScript wrapper for the ROBLOX OpenCloud API.

A JavaScript wrapper for the ROBLOX OpenCloud API. Introduction Recently at RDC 2022, ROBLOX announced OpenCloud API endpoints for DataStore, Messagin

Compey 4 Nov 11, 2022
Tiny Telegra.ph API wrapper for Deno

Telegra.ph API wrapper for Deno ?? This is a tiny Telegra.ph API wrapper for Deno written in TypeScript. All methods as listed here are available. See

Dunkan 9 Jul 28, 2022
Programmers House api official wrapper

programmershouse-wrapper Programmers House api official wrapper Install: npm install programmershouse-wrapper Example of using: With .then //importing

Raid 2 Mar 23, 2022
A Roblox OpenCloud API wrapper for Deno (and NodeJS) written in TypeScript.

Active Development This module is currently in active development. Nothing is going to stay consistent as it reaches a stable release. Dynablox Docs |

null 12 Oct 28, 2022