Socket
Socket
Sign inDemoInstall

moe-api

Package Overview
Dependencies
9
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    moe-api

Search anime scene using trace.moe API.


Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Install size
1.99 MB
Created
Weekly downloads
 

Readme

Source

moe-api

Search anime scene using trace.moe API.

CodeFactor

Installation

$ npm install moe-api

Usage

ESM

import TraceMoe from 'moe-api'
const moe = new TraceMoe()

CommonJS

const TraceMoe = require('moe-api').default
const moe = new TraceMoe()

Options

const moe = new TraceMoe({
  apiKey: 'ABC',
  cutBorders: false,
  anilistInfo: true,
  mute: false,
  size: 1
})
  • apiKey: Your API key, you can safely ignore this if you don't have it.
  • cutBorders: Cut away unnecessary parts of the images that would affect search results accuracy. Default is false.
  • anilistInfo: Include AniList info. Default is true.
  • mute: Mute generated video. Default is false.
  • size: Size of generated media. 0 small, 1 medium, and 2 large. Default is 1.

Example

import TraceMoe from 'moe-api'
const moe = new TraceMoe()

async function sourceFromUrl(url) {
  const res = await moe.traceFromUrl(url)
  console.log(res)
}

sourceFromUrl('https://images.plurk.com/32B15UXxymfSMwKGTObY5e.jpg')

API

moe.traceFromUrl(url)

  • url string of media URL that can be decoded by ffmpeg.

Get source from given media URL.

moe.traceFromFile(filePath)

  • filePath string of existing media path.

Get source from given file.

moe.traceFromBase64(base64)

  • base64 string of Base64 or data URL.

Get source from Base64 string or data URL.

moe.me()
Check the search quota and limit for your account (with API key) or IP address (without API key).

For more info please check trace.moe API docs.

License

moe-api © SlavyanDesu, released under the MIT License. Authored and maintained by SlavyanDesu.

Keywords

FAQs

Last updated on 28 Jan 2023

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