Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

escposencoder.js

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

escposencoder.js

Browser-based version of the awesome Node.js module [EscPosEncoder](https://github.com/NielsLeenheer/EscPosEncoder) by [@NielsLeenheer](https://github.com/NielsLeenheer)

  • 1.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

EscPosEncoder.js

Browser-based version of the awesome Node.js module EscPosEncoder by @NielsLeenheer

Installation

You can import it as a script tag or use an import statement:

<script src="https://unpkg.com/escposencoder.js@1.0.1/dist/module.js" type="module"></script>

or

import EscPosEncoder from "https://unpkg.com/escposencoder.js@1.0.1/dist/module.js";

Usage

You should be able to use it the same way as is described in the original module

Example:

import EscPosEncoder from "./escposencoder.js";

const posEncoder = new EscPosEncoder();
const encodedImage = posEncoder
    .initialize()
    .newline()
    .text("HELLO WORLD")
    .encode();

An example working with Adafruit's Tiny Thermal printer can be found in the example folder.

FAQs

Package last updated on 10 Mar 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc