
Product
Introducing Scala and Kotlin Support in Socket
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
ocr-space-api-wrapper
Advanced tools
Node.js wrapper for ocr.space APIs.
npm i ocr-space-api-wrapper
const ocrSpace = require('ocr-space-api-wrapper')
async function main () {
// Using the OCR.space default free token
const response1 = await ocrSpace('http://dl.a9t9.com/ocrbenchmark/eng.png')
// Using your personal token + a local file
const response2 = await ocrSpace('/path/to/file.pdf', { apiKey: '<API_KEY_HERE>' })
// Using your personal token + a base64image + custom language
const response2 = await ocrSpace('data:image/png;base64,superLongStringHere...', { apiKey: '<API_KEY_HERE>', language: 'ita' })
}
The input param specifies the input file (see example above). It can be one of the following:
URL address
;file path
;base64 image
string.This param is an object with the following keys:
apiKey
: your API key for ocr.space APIs.ocrUrl
: a different URL for oce.space APIs, for example when you purchase the PRO plans.Refer to the official website.
Please open a new issue.
FAQs
Node.js wrapper for ocr.space APIs.
The npm package ocr-space-api-wrapper receives a total of 7,815 weekly downloads. As such, ocr-space-api-wrapper popularity was classified as popular.
We found that ocr-space-api-wrapper demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
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.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
Application Security
/Security News
Socket CEO Feross Aboukhadijeh and a16z partner Joel de la Garza discuss vibe coding, AI-driven software development, and how the rise of LLMs, despite their risks, still points toward a more secure and innovative future.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.