ppla-builder

0.1.5 • Public • Published

ppla-builder Build Status

An easy way to build labels in ppla (printer programming language A).

I started this project as a way to get used to the printer programming language A,
accepted by the Argox OS series (and others Argox printers). The main goal was to build easier the output for the printer, abstracting the need of knowing the exactly order of the configurations for a simple print line.

This project has no intent of covering all the commands available in the language, neither do complex configurations and generate complex print commands.

Getting Started

Install the module with: npm install ppla-builder

var pplaBuilder = require('ppla-builder');

Documentation

(Coming soon)

Examples

   var pplaBuilder = require('ppla-builder');
   pplaBuilder.rotation(pplaBuilder.DIRECTIONS.LANDSCAPE)
                      .fontType(pplaBuilder.FONT_TYPE[':'].value)
                      .fontSubType(pplaBuilder.COURIER_SUBTYPES.ECMA94)
                      .hScale(5)
                      .vScale(3)
                      .x(100)
                      .y(150)
                      .label('This is a test label');

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.

Release History

0.1.5
Added alias for setting margin left.
Added function to overwrite the defaults.
Changed to Apache-2.0 License.
0.1.4
Added alias for setting the measures in meter or inchs.
0.1.3
Added method for setting the label configurations.
Added alias for setting the pixel size of the label.
0.1.2
Fixed some npm configurations
0.1.1
Added npm info in the packages.json
0.1.0
Initial features. Basic label and barcode formatting

License

Copyright (c) 2014 Murilo Laghi
Licensed under the Apache-2.0 license.

/ppla-builder/

    Package Sidebar

    Install

    npm i ppla-builder

    Weekly Downloads

    2

    Version

    0.1.5

    License

    none

    Last publish

    Collaborators

    • laghi