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

hummus-reports

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hummus-reports

Layout engine over hummus pdf library

  • 1.0.10
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Hummus reports

Hello! This repo hosts an engine that can generate reports. It does that using a PDF library named hummus, and a layout engine that helps with things like text wrapping, image fitting, and provide a json document layout, instead of the hummus command-based api.

Engine documentation

You can find documentaiton on how to use the engine in the documents section of this project. Here's a TOC:

Installation

npm install hummus-reports

Samples

The project has two samples provided:

  1. simple-script - A basic script that generates a PDF file, with assets map example. The output is made to a file.
  2. simple-editor - A simple preview-and-generate server and site, allowing you to quickly edit and preview documents. The output of the PDF is provided directly to the stream, which in turn is used as a data uri in the client code. If you intend to run this project independently make sure to update its reference to this project as it is now relative to this project root.

Development

Folders structure

The folders structure is as follows:

  1. ./index.js - root file for exporting PDFEngine class
  2. ./lib/pdf-engine folder - implementaiton of the pdf engine. root is pdf-engine.js.

Warning! native module ahead

HummusJS is a native module. This means that this code can only be ran on a NodeJS service, and is not a cross-platform javascript module.

Keywords

FAQs

Package last updated on 22 Jul 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