Nightly Procrastination Machine

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

    0.2.0 • Public • Published

    Capmonster.cloud for NodeJS

    NodeJS Package Tests npm bundle size npm NPM npm npm type definitions GitHub last commit GitHub Repo stars

    NodeJS package for Capmonster.cloud

    If you have any problem with usage, read the documentation or create an issue

    At least 2x cheaper, up to 30x faster than manual recognition services.

    Installation

    npm i node-capmonster
    

    Supported captcha types

    • Image to text
    • Recaptcha v2
    • Recaptcha v3
    • Fun Captcha
    • HCaptcha
    • GeeTest

    Usage examples

    ImageToText

    const { ImageToTextTask } = require("node-capmonster")
    
    const capmonster = new ImageToTextTask("API_KEY")
    capmonster.createTask("base64 encoded image as string")
        .then((taskId) => {
            captcha.joinTaskResult(taskId)
                .then((response) => console.log(response))
        })

    Recaptcha v2

    const { RecaptchaV2Task } = require("node-capmonster")
    
    const capmonster = new RecaptchaV2Task("API_KEY")
    capmonster.createTask("website_url", "website_key")
        .then((taskId) => {
            capmonster.joinTaskResult(taskId)
                .then((response) => console.log(response))
        })

    For other examples and api documentation please visit wiki

    Install

    npm i node-capmonster

    DownloadsWeekly Downloads

    73

    Version

    0.2.0

    License

    MIT

    Unpacked Size

    67.8 kB

    Total Files

    27

    Last publish

    Collaborators

    • alperensert