
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
mdocument-scanner
Advanced tools
Document scanner - This is a Capacitor plugin that lets you scan documents using Android and iOS.
npm install mdocument-scanner
npx cap sync
Add these lines to android/app/src/main/res/xml/file_paths.xml
<?xml version="1.0" encoding="utf-8" ?>
<paths xmlns:android="http://schemas.android.com/apk/res/android">
<external-path name="external_files" path="."/>
<cache-path name="mlkit_docscan_ui_client" path="." />
</paths>
iOS requires the following usage description be added and filled out for your app in Info.plist:
NSCameraUsageDescription (Privacy - Camera Usage Description)
scanDocument(options: ScanDocumentOptions) => Promise<ScanDocumentResponse>
| Param | Type |
|---|---|
options | ScanDocumentOptions |
Returns: Promise<ScanDocumentResponse>
| Prop | Type | Description |
|---|---|---|
scannedFile | string | This is an array with either file path or base64 for the document scan. |
status | ScanDocumentResponseStatus | The status lets you know if the document scan completes successfully, or if the user cancels before completing the document scan. |
| Prop | Type | Description | Default |
|---|---|---|---|
maxNumDocuments | number | Android only: The maximum number of photos an user can take (not counting photo retakes) | : 1 |
responseType | ResponseType | The response comes back in this format on success. It can be the document scan image file paths or base64 images. | : ResponseType.ImageFilePath |
| Members | Value | Description |
|---|---|---|
Success | 'success' | The status comes back as success if the document scan completes successfully. |
Cancel | 'cancel' | The status comes back as cancel if the user closes out of the camera before completing the document scan. |
| Members | Value | Description |
|---|---|---|
Base64 | 'base64' | Use this response type if you want document scan returned as base64 images. |
ImageFilePath | 'imageFilePath' | Use this response type if you want document scan returned as inmage file paths. |
FAQs
Mdocument scanner
We found that mdocument-scanner 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.