Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
= reportbuilder
== DESCRIPTION:
Report Abstract Interface. Creates text, html, pdf and rtf output, based on a common framework.
== FEATURES
== SYNOPSIS:
Using generic ReportBuilder#add, every object will be parsed using methods
report_building_FORMAT
report_building or
to_s
require "reportbuilder"
rb=ReportBuilder.new
rb.add(2) # Int#to_s used
table=ReportBuilder::Table.new(:name=>"Table", :header=>%w{id name})
table.row([1,"John"])
rb.add(table) # table have a #report_building method
rb.add("Another text") # used directly
rb.name="Text output"
puts rb.to_text
rb.save_rtf("test.rtf") # You could save files, too
Using a block, you can control directly the generator
require "reportbuilder"
rb=ReportBuilder.new do
text("2")
section(:name=>"Section 1") do
table(:name=>"Table", :header=>%w{id name}) do
row([1,"John"])
end
end
preformatted("Another Text")
end
rb.name="Html output"
puts rb.to_html
== DEVELOPERS
If you want to give support to your class, create a method called #report_building(b), which accept a ReportBuilder::Builder as argument. If you need fine control of output according to format, append the name of format, like #report_building_html, #report_building_text.
See ReportBuilder::Builder for API and ReportBuilder::Table, ReportBuilder::Image and ReportBuilder::Section for examples of implementation. Also, Statsample package object uses report_building on almost every class.
Source code could be retrieved from http://github.com/clbustos/reportbuilder
== REQUIREMENTS:
== INSTALL:
With RVM
$ gem install reportbuilder
without RVM
$ sudo gem install reportbuilder
== LICENSE:
GPL-2
FAQs
Unknown package
We found that reportbuilder demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.