
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
expo-mlkit-ocr
Advanced tools
Text recognition for React Native using native OCR engines.
npm install expo-mlkit-ocr
Requires expo-modules-core
.
import ExpoMlkitOcr from 'expo-mlkit-ocr';
const result = await ExpoMlkitOcr.recognizeText('file:///path/to/image.jpg');
console.log(result.text);
// Log each block
result.blocks.forEach((block, blockIndex) => {
console.log(`Block ${blockIndex}:`, block.text);
// Log each line in the block
block.lines.forEach((line, lineIndex) => {
console.log(` Line ${lineIndex}:`, line.text);
// Log each element in the line
line.elements.forEach((element, elementIndex) => {
console.log(` Element ${elementIndex}:`, element.text);
});
});
});
recognizeText(imageUri: string)
Returns:
{
text: string;
blocks: Array<{
text: string;
lines: Array<{
text: string;
elements: Array<{
text: string;
cornerPoints: Array<{x: number, y: number}>;
}>;
cornerPoints: Array<{x: number, y: number}>;
}>;
cornerPoints: Array<{x: number, y: number}>;
}>;
}
MIT
[2.0.1] - 2025-06-24
FAQs
React Native module for text recognition using Google's ML Kit
The npm package expo-mlkit-ocr receives a total of 136 weekly downloads. As such, expo-mlkit-ocr popularity was classified as not popular.
We found that expo-mlkit-ocr 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.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.