@anyline/anyline-js
Advanced tools
Comparing version 29.0.1 to 29.0.2
{ | ||
"name": "@anyline/anyline-js", | ||
"version": "29.0.1", | ||
"version": "29.0.2", | ||
"description": "anyline sdk in the browser", | ||
@@ -5,0 +5,0 @@ "main": "anyline.js", |
@@ -17,2 +17,10 @@ # AnylineJS | ||
`npm install @anyline/anyline-js` | ||
`import { init, errorCodes } from '@anyline/anyline-js` | ||
or | ||
copy the `anylinejs` folder into the public folder of your webapp. | ||
@@ -22,6 +30,7 @@ | ||
`const { init, errorCodes } = window.anylinejs;` | ||
# Usage | ||
```javascript | ||
const { init, errorCodes } = window.anylinejs; | ||
@@ -71,3 +80,2 @@ const viewConfig = { | ||
Anyline.onResult = result => { | ||
console.log('Result: ', result); | ||
let msg = JSON.stringify(result.result); | ||
@@ -89,8 +97,2 @@ alert(msg); | ||
Anyline.startScanning().catch(e => console.error(e.message)) | ||
``` | ||
## Demo | ||
`npm start demo` | ||
open https://127.0.0.1:8000/demo | ||
``` |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
94
498115