Repository contains Node JS Library for communicating with the Aspose.BarCode Cloud API
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
testdata
.gitignore
Aspose.BarCode.Cloud.Sdk.sln
LICENSE
README.md

README.md

Aspose.BarCode for Cloud Node JS SDK

Aspose.BarCode for Cloud is a REST API for Linear, 2D and postal barcode generation and recognition in the cloud. API recognizes and generates barcode images in a variety of formats. Barcode REST API allows to specify barcode image attributes like image width, height, border style and output image format in order to customize the generation process. Developers can also specify the barcode type and text attributes such as text location and font styles in order to suit the application requirements.

This repository contains Aspose.BarCode for Cloud Node JS SDK source code.

To use these SDKs, you will need App SID and App Key which can be looked up at Aspose Cloud Dashboard (free registration in Aspose Cloud is required for this).

How to use the SDK?

The complete source code is available in this repository folder. You can either directly use it in your project via source code or get nmpjs distribution (recommended).

Install Aspose.BarCode for Cloud via NPM

From the command line:

npm install aspose-barcode-cloud-node --save

Sample usage

The examples below show how your application have to generate PDF417 barcode and save it on local storage:

const { barcode, fs } = require("aspose-barcode-cloud-node", "fs");

var api = new barcode.BarCodeApi(AppSid, AppKey);

api.barCodeGetBarCodeGenerate("Aspose.BarCode for Cloud Sample", "Pdf417", "png").then((apiResult) => {
       if (apiResult.response.statusCode == 200) {
           fs.writeFile("out.png", apiResult.body);
           console.log("Saved to out.png ");
       }
   });

Every method returns a chainable promise.

Licensing

All Aspose.BarCode for Cloud SDKs, helper scripts and templates are licensed under MIT License.

Resources