Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
aspose.barcode
Advanced tools
Aspose.Barcode for Node.js via Java is implemented by using nodejs-java bridge. It allows developers to quickly and easily add barcode generation and recognition functionality to their Node.js applications.
It's supported the different kinds of symbologies. The BarCode Code text (data which will be encoded to barcode image) should be set. Its appearance-related properties like font, back color, forecolor, alignment, and location (hide, above, below) etc. can also be modified. The checksum is supported. Barcode Caption and its font, back color, fore color, alignment, and location (hide, above, below) can be managed. The bar height of the barcode images can be customized. X-dimension, Y-dimension (for 2D BarCodes) are also supported. Code128 encoding is exceptionally optimized. Wide to Narrow Ratio can be achieved for supported symbologies. DataMatrix barcode with X12, EDIFACT and Base 256 encoding Available a lot of different Barcode types for recognizing and generating.
BarcodeReader reads most common 1D, 2D barcodes anywhere at any angle from an image. Specify an area in the image to scan the barcode Get region information for the barcodes recognized in the image
Manipulate the barcode image borders, border color, style, margins, width, etc. Barcode image color, back color, and bar color can be modified. Rotate barcode images to any degree. High-quality barcode images. Anti-Aliasing for barcode images. Barcode image margins can be managed. Customized resolution. Size in inches and millimeters. Auto Sizing of barcode images. Create barcode images in any desired image format like BMP, JPEG, GIF, PNG
JPEG PNG BMP GIF
JPEG PNG BMP GIF
Aspose.BarCode supports both encoding and decoding (generation and recognition) for all the listed symbologies.
npm i aspose.barcode
in root of your project.const barcode_ = require("aspose.barcode"); const aspose_barcode = barcode_.AsposeBarcode;
to your script.
For detailed information see script examples in the folder 'examples' (ExamplesAssist.js, BarcodeGeneratorExamples.js etc)`const fs = require("fs");
const barcode_ = require("aspose.barcode");
const aspose_barcode = barcode_.AsposeBarcode
let BarcodeGenerator = aspose_barcode.BarcodeGenerator;
let EncodeTypes = aspose_barcode.EncodeTypes;
let BarCodeReader = aspose_barcode.BarCodeReader;
function generateAndRead()
{
let generator = new BarcodeGenerator(EncodeTypes.CODE_128, "12367891011");
let file_path = "resources/generating/setBarcodeType.png";
generator.save(file_path, "PNG");
let image_data_base64 = fs.readFileSync(file_path).toString('base64');
let reader = new BarCodeReader(image_data_base64, null, DecodeType.ALL_SUPPORTED_TYPES);
reader.readBarCodes().forEach(function(result, i, results)
{
console.log("Recognized barcode code text: " + result.getCodeText(false) + "\n");
console.log("Recognized barcode code type: " + result.getCodeTypeName() + "\n");
});
}
let file_name = "code11.png";
let full_path = this.subfolder + file_name;
let reader = new BarCodeReader(full_path, null, null);
reader.setQualitySettings(QualitySettings.getHighPerformance());
reader.getQualitySettings().setAllowMedianSmoothing(true);
reader.getQualitySettings().setMedianSmoothingWindowSize(5);
reader.readBarCodes().forEach(function (result, i, results)
{
console.log(result.getCodeText());
console.log(result.getCodeTypeName());
});
const barcode_ = require("aspose.barcode");
const aspose_barcode = barcode_.AsposeBarcode
let BarcodeGenerator = aspose_barcode.BarcodeGenerator;
let EncodeTypes = aspose_barcode.EncodeTypes;
let encode_type = EncodeTypes.CODE_128;
let generator = new BarcodeGenerator(encode_type, null);
generator.setCodeText("123ABC");
generator.save(this.subfolder + "howToGenerateBarcodeImage.png", "PNG");
Product Page | Product Documentation | Blog |API Reference | Source Code Samples | Free Support | Temporary License
FAQs
barcode generation and recognition component
The npm package aspose.barcode receives a total of 13 weekly downloads. As such, aspose.barcode popularity was classified as not popular.
We found that aspose.barcode demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.