Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

moebooru

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

moebooru

Wrapper for the Moebooru API.

  • 0.0.4
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Moebooru API

This is a wrapper around the Moebooru API. Only the read-only endpoints are currently supported.

Insall

npm install moebooru
Searching for posts, tags, and comments
import Moebooru from "moebooru"
const moebooru = new Moebooru()

async function useAPI() {
    /*You can easily search for nearly everything under the search class.*/
    const posts = await moebooru.search.posts({query: "post"})
    const artists = await moebooru.search.artists({query: "artist"})
    const characters = await moebooru.search.characters({query: "characters"})
    const series = await moebooru.search.series({query: "series"})
    const tags = await moebooru.search.tags({query: "tag"})
    const comments = await moebooru.search.comments({query: "comment"})
}
Common Types
MoebooruPost
export interface MoebooruPost {
    postID: number
    uploader: string | null
    updater: string | null
    type: MoebooruType
    restrict: MoebooruRestrict
    style: MoebooruStyle
    thirdParty: boolean
    drawn: string
    uploadDate: string
    updatedDate: string
    title: string
    translatedTitle: string
    artist: string
    link: string
    commentary: string
    translatedCommentary: string
    images: MoebooruImage[]
    tags: string[],
    favoriteCount: string
    cutenessAvg: string   
}

MoebooruCommentSearch
export interface MoebooruCommentSearch {
    commentID: number
    postID: number
    username: string
    comment: string
    postDate: string
    editedDate: string
    image: string | null
    post: MoebooruMiniPost
}
MoebooruTagSearch
export interface MoebooruTagSearch {
    tag: string
    type: MoebooruTagType
    image: string | null
    description: string | null
    aliases: string[]
    postCount: string
    imageCount: string
    aliasCount: string
}

Keywords

FAQs

Package last updated on 04 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc