barcodedatagenerator

1.0.3 • Public • Published

BarcodeDataGenerator

Create data for barcode generation. Code Corporation.

INSTALLATION

npm install barcodedatagenerator

IMPORT

import {GenerateQrCodeCRCCS, GenerateQrCodeCRQCC, GenerateQrCodeCRMKR, GenerateQrCodeAgeVerification, GenerateQrCodeSplitJavascript} from 'barcodedatagenerator';

GenerateQrCodeCRCCS

IMPLEMENTING:

GenerateQrCodeCRCCS(inputFromUser)
-Parameter "inputFromUser" - input from file or textbox seperated by (;) or (\r\n).
-returns string value contianing the generated CRCCS string.

Text file which contains the command for the reader. If giving multiple commands in the text box, separate them with a semi-colon (";").

GenerateQrCodeCRQCC

IMPLEMENTING:

GenerateQrCodeCRQCC(inputFromUser)
-Parameter "inputFromUser" - input from textbox.
-returns string value containing the generated CRQCC string.

Text file which contains commands to have a CR2700 connect to an A271. It has a slightly different encoding so that normal commands can be blocked by the connection commands permitted.

example:

000BEF123456 // Connect to Bluetooth MAC Address "000BEF123456"

GenerateQrCodeCRMKR

IMPLEMENTING:

GenerateQrCodeCRMKR(inputFromUser)
-Parameter "inputFromUser" - input from file or textbox seperated by (;) or (%).
-returns string value containing the generated CRMKR string.

Text file which contains head/footer/split. Non-printable characters are represented by url encoding.

GenerateQrCodeAgeVerification

IMPLEMENTING:

GenerateQrCodeAgeVerification(clockCheck, optionLock, pinValue, optionAgeVer, underageValue, overageValue, optionExVer)
-Parameter "clockCheck" - input from checkbox Set time.
-Parameter "optionLock" - input from select box Lock/Unlock, options will be "lock", "unlock" and "no action".
-Parameter "pinValue" - Input from textbox Pin.
-Parameter "optionAgeVer" - input from Select box Age verification, options will be "enable", "disable and "no action".
-Parameter "underageValue" - input from textbox Under Age Value.
-Parameter "overageValue" - input from textbox Over Age Value.
-Parameter "optionExVer" - input from Select box Expiration Verification, options will be "enable", "disable" and "no action".
-returns string value containing the generated Age Verification string.

GenerateQrCodeSplitJavascript

IMPLEMENTING:

GenerateQrCodeSplitJavascript(inputFromUser, fileName, fileSize, maxSizeJs, numberBarcodes)
-Parameter "inputFromUser" - input from file.
-Parameter "fileName" - Name of the file.
-Parameter "fileSize" - Full size of the file.
-Parameter "maxSizeJs" - input from textbox Max Size Js.
-Parameter "numberBarcodes" - Input from textbox Number of Barcodes.
-returns "splitString" - strings values containing the generated Split Javascript strings, will return as many strings as we split the javascript.

-returns "combinerScriptString" - String for combine the javascript, will return just one string.

GenerateQrCodeSplitJavascript will return two values. To receive those values have to type:
 [splitString, combinerScriptString] = GenerateQrCodeSplitJavascript(text, filename, filesize, maxsizejs, numberbarcodes);
Where "splitString" is an array, and "combinerScriptString" is just a var:
var SplitString = new Array();
      var combinerScriptString;
For printing all values from splitString, have to use a FOR loop

Readme

Keywords

Package Sidebar

Install

npm i barcodedatagenerator

Weekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

17.6 kB

Total Files

4

Last publish

Collaborators

  • alejandro.nino.codecorp