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

2.0.3 • Public • Published

WaifuSocket

npm

node module to interface with the new waifulabs v2 websocket api

Documentation

Install

npm i waifusocket

Usage example

import fs from 'fs/promises';
import { WaifuSocket } from 'waifusocket';

const socket = await new WaifuSocket().login('SFMyNTY.JUSTSOMERANDOMCOOKIE');

const grid = await ws.genGrid();
console.log(grid.length);

const big = await ws.genBig(grid[0].seeds);
await fs.writeFile('./image.png', big.image);

ws.close();

Readme

Keywords

none

Package Sidebar

Install

npm i waifusocket

Weekly Downloads

2

Version

2.0.3

License

none

Unpacked Size

10.4 kB

Total Files

7

Last publish

Collaborators

  • aroleaf