npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

alexflipnote.js

v3.1.2

Published

JS API wrapper for AlexFlipnote API @ https://api.alexflipnote.dev/

Downloads

169

Readme

alexflipnote.js npm npm install size

A simple AlexFlipnote API Wrapper

NPM

Installation

npm i alexflipnote.js

Recent Updates

Good news: AlexFlipnote has returned some of the endpoints back and this module has been updated accordingly Screenshot

Endpoints

| Function | Params | Description | | --------------- | --------------------------------------------------- | ---------------------------------------------------- | | achievement() | text, icon (optional) | Sends a Minecraft achievement image | | birb() | none | Sends a random birb image | | calling() | text | Sends a Tom calling image | | captcha() | text | Sends a Google captcha image | | cats() | none | Sends a random cat image | | challenge() | text, icon (optional) | Sends a Minecraft challenge image | | color() | string | Searches a color from hex code and provide more info | | didyoumean?() | top, bottom | Sends a "Did you mean" Google image | | dogs() | none | Sends a random dog image | | drake() | top, bottom | Sends a Drake yes no image | | facts() | text | Sends a facts book image | | nft() | seed (optional) or hex, season (optional) | Sends a randomised (or customised) xelA avatar/nft | | ph() | text, text2 | Sends a pornhub logo format image | | sadcat() | none | Sends a random sad cat image | | scroll() | text | Sends a scroll of truth image | | sillycat() | seed (optional) or hex, hex2 (optional) | Sends a silly cat image | | coffee() | none | Sends a random Coffee image |

birb/cats/dogs/sadcat/coffee will return {file: "https://api.alexflipnote.dev/cats/zDm8l4maVQg_cats.png"}

color example return: Color

nft without parameters or only seed parameter example return: NFT

sillycat without parameters or only seed parameter example return: Sillycat

Other methods not listed above will return an image buffer.

Typings

I added a typings file and will be working to perfect it. This allows editors like VSC to use intellisense/autocomplete to suggest functions and help out with parameters and to see what you'll be receiving as a result of function calls.

Examples

Cats Example

const client = require('alexflipnote.js');
const alexClient = new client();
const fs = require('fs');
const https = require('https');

(async () => {
  const link = await alexClient.cats();
  const file = fs.createWriteStream("image.png");
  https.get(link.file, function(response) {
     response.pipe(file);
     file.on("finish", () => {
         file.close();
     });
  });
})();

NFT and Sillycat Example

const client = require('alexflipnote.js');
const alexClient = new client();
const fs = require('fs');
const https = require('https');

(async () => {
  const image = await alexClient.sillycat();
  const file = fs.createWriteStream("image.png");
  https.get(image.images.simple, function(response) {
     response.pipe(file);
     file.on("finish", () => {
         file.close();
     });
  });
})();

Color Example

const client = require('alexflipnote.js');
const alexClient = new client();
let body = await alexClient.color('00ffd9');
console.log(body);

Utilisation of Buffers in Embeds in Discord.js v14 Example

const { AttachmentBuilder, EmbedBuilder } = require('discord.js');
const client = require('alexflipnote.js');
const alexClient = new client();

let buffer = alexClient.challenge({"balls", 1});
let file = new AttachmentBuilder(buffer, { name: 'image.png' });

const embed = new EmbedBuilder()
	.setTitle('Nice Image')
	.setImage('attachment://image.png');

channel.send({ embeds: [embed], files: [file] });

Made By

This wrapper is made by HarutoHiroki#4000 on Discord.

For questions and bug reports you can join my Discord server or AlexFlipnote's server

Suggestions are welcomed!