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

cordova-plugin-scanbot-sdk

Package Overview
Dependencies
Maintainers
1
Versions
223
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-scanbot-sdk

Cordova Plugin for Scanbot SDK

  • 4.2.0-beta3
  • npm
  • Socket score

Version published
Weekly downloads
713
decreased by-20.51%
Maintainers
1
Weekly downloads
 
Created
Source

Scanbot Document and Barcode Scanner SDK for Cordova

The Scanbot SDK brings scanning and document creation capabilities to your mobile apps.

This Cordova plugin provides implementations of the Scanbot Document Scanner SDK for Android and iOS.

Example App

👉 Ionic example app

Documentation

For the full API reference of the Scanbot SDK Cordova Plugin please check out the documentation.

HTML5 Camera

Development

You'd ideally work in scanbot-sdk-example-ionic with a local copy of ScanbotSDK:

  • "cordova-plugin-scanbot-sdk": "file:../scanbot-sdk-cordova-plugin",

That allows you to work directly with the typescript file (even modifying it from the example repository). Though, do pay attention where you're situated:

  • If you're working in the plugins directory, then the SDK repository won't be updated
  • If you're working in the node_modules directory, it will.

Cf. where you're importing the SDK from:

  • import {ScanbotHTMLCamera} from '../../../plugins/cordova-plugin-scanbot-sdk/camera';
Release
Rant

Your working file, camera.ts, is not supposed to be in the npm package. I mean, you can put it there, but then the reference of your end-product needs to look exactly like the one defined above, as a local reference. The Angular typescript compiler will flip the table if it sees third-party typescript.

So, you either reference the typescript as your own, or work with type definitions and transpiled javascript.

God knows why it was designed like this, it makes absolutely no sense from an architectural perspective. Perhaps something-something different versions of typescript not being backwards compatible.

Requirements
  • npm install -g typescript-compiler
Transpilation and typings

Either way, transpiling to javascript is simple enough. Before releasing be sure to:

  • tsc --declaration camera.ts

This should update both camera.js and camera.d.ts, which are actually part of your final package

Keywords

FAQs

Package last updated on 24 Jul 2020

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