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

ya-ocr

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ya-ocr

An unofficial library to use Yandex OCR for free via Translation API

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
decreased by-46.67%
Maintainers
0
Weekly downloads
 
Created
Source

ya-ocr

GitHub Actions npm ru en

An unofficial library to use Yandex OCR for free via Translation API, which supports working with JavaScript, TypeScript, and also has built-in parted types for Typebox.

Installation

Installation via Bun:

bun add ya-ocr

Installation via NPM:

npm install ya-ocr

Getting started

To start working with the API, you need to create a OCR Client. This can be done using the line provided below.

const client = new OCRClient();

const result = await client.scanByUrl(
  "https://repository-images.githubusercontent.com/450906609/c04b600b-5f0f-488b-820d-ffaeb1fde2d0",
);

You can see more code examples here

How to use as ShareX OCR see here

Build

To build, you must have:

  • Bun

Don't forget to install the dependencies:

bun install
Regular Build

Building the entire package:

bun build:bun
Building a TypeBox of Types

You can use this build option if you only want to build types for TypeBox:

bun build:typebox

Tests

The library has minimal test coverage to check its performance.

Run the tests:

bun test

Keywords

FAQs

Package last updated on 20 Oct 2024

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