Socket
Socket
Sign inDemoInstall

moebooru

Package Overview
Dependencies
2
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    moebooru

Wrapper for the Moebooru API.


Version published
Weekly downloads
0
Maintainers
1
Created
Weekly downloads
 

Readme

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

Last updated on 04 May 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc