npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

cmexx-scanner

v0.0.6

Published

Plugin para scaneamento de códigos de barras 2D pequenos, com utilização de inteligência artificial.

Downloads

8

Readme

cmexx-scanner

Plugin para scaneamento de códigos de barras 2D pequenos, com utilização de inteligência artificial.

Install

npm install cmexx-scanner
npx cap sync

API

prepare()

prepare() => Promise<void>

hideBackground()

hideBackground() => Promise<void>

showBackground()

showBackground() => Promise<void>

startScan(...)

startScan(options?: ScanOptions | undefined) => Promise<ScanResult>

| Param | Type | | ------------- | --------------------------------------------------- | | options | ScanOptions |

Returns: Promise<ScanResult>


stopScan(...)

stopScan(options?: StopScanOptions | undefined) => Promise<void>

| Param | Type | | ------------- | ----------------------------------------------------------- | | options | StopScanOptions |


checkPermission(...)

checkPermission(options?: CheckPermissionOptions | undefined) => Promise<CheckPermissionResult>

| Param | Type | | ------------- | ------------------------------------------------------------------------- | | options | CheckPermissionOptions |

Returns: Promise<CheckPermissionResult>


openAppSettings()

openAppSettings() => Promise<void>

Interfaces

ScanResult

| Prop | Type | Description | Since | | ---------------- | -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----- | | hasContent | boolean | This indicates whether or not the scan resulted in readable content. When stopping the scan with resolveScan set to true, for example, this parameter is set to false, because no actual content was scanned. | 1.0.0 | | content | string | This holds the content of the barcode if available. | 1.0.0 |

ScanOptions

| Prop | Type | Description | Since | | --------------------- | ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----- | | targetedFormats | SupportedFormat[] | This parameter can be used to make the scanner only recognize specific types of barcodes. If targetedFormats is not specified or left empty, all types of barcodes will be targeted. | 1.2.0 |

StopScanOptions

| Prop | Type | Description | Default | Since | | ----------------- | -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------- | ----- | | resolveScan | boolean | If this is set to true, the startScan method will resolve. Additionally hasContent will be false. For more information see: https://github.com/capacitor-community/barcode-scanner/issues/17 | true | 2.1.0 |

CheckPermissionResult

| Prop | Type | Description | Since | | ---------------- | -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ----- | | granted | boolean | When set to true, the ermission is granted. | | | denied | boolean | When set to true, the permission is denied and cannot be prompted for. The openAppSettings method should be used to let the user grant the permission. | 1.0.0 | | asked | boolean | When this is set to true, the user was just prompted the permission. Ergo: a dialog, asking the user to grant the permission, was shown. | 1.0.0 | | neverAsked | boolean | When this is set to true, the user has never been prompted the permission. | 1.0.0 | | restricted | boolean | iOS only When this is set to true, the permission cannot be requested for some reason. | 1.0.0 | | unknown | boolean | iOS only When this is set to true, the permission status cannot be retrieved. | 1.0.0 |

CheckPermissionOptions

| Prop | Type | Description | Default | Since | | ----------- | -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------ | ----- | | force | boolean | If this is set to true, the user will be prompted for the permission. The prompt will only show if the permission was not yet granted and also not denied completely yet. For more information see: https://github.com/capacitor-community/barcode-scanner#permissions | false | 1.0.0 |

Enums

SupportedFormat

| Members | Value | Description | | ----------------------- | -------------------------------- | ------------------------------------------------------------- | | UPC_A | 'UPC_A' | Android only, UPC_A is part of EAN_13 according to Apple docs | | UPC_E | 'UPC_E' | | | UPC_EAN_EXTENSION | 'UPC_EAN_EXTENSION' | Android only | | EAN_8 | 'EAN_8' | | | EAN_13 | 'EAN_13' | | | CODE_39 | 'CODE_39' | | | CODE_39_MOD_43 | 'CODE_39_MOD_43' | iOS only | | CODE_93 | 'CODE_93' | | | CODE_128 | 'CODE_128' | | | CODABAR | 'CODABAR' | Android only | | ITF | 'ITF' | | | ITF_14 | 'ITF_14' | iOS only | | AZTEC | 'AZTEC' | | | DATA_MATRIX | 'DATA_MATRIX' | | | MAXICODE | 'MAXICODE' | Android only | | PDF_417 | 'PDF_417' | | | QR_CODE | 'QR_CODE' | | | RSS_14 | 'RSS_14' | Android only | | RSS_EXPANDED | 'RSS_EXPANDED' | Android only |