test.aspose.barcode.cloud

1.0.7 • Public • Published

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.

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 the GIT repository. You can either directly use it in your project via source code or get nmpjs distribution (recommended).

Installation

Install Aspose.BarCode for Cloud via NPM

From the command line:

npm install aspose-barcode-cloud --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", "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

Readme

Keywords

Package Sidebar

Install

npm i test.aspose.barcode.cloud

Weekly Downloads

1

Version

1.0.7

License

MIT

Unpacked Size

69 kB

Total Files

6

Last publish

Collaborators

  • evgn