Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
TODO: Write a gem description
Add this line to your application's Gemfile:
gem 'prawml'
And then execute:
$ bundle
Or install it yourself as:
$ gem install prawml
Describe in an yaml file the fields and its xpos, ypos and style/type options:
# example.yml
text1:
- [250, 680, {style: bold, align: center, size: 96, font: 'Helvetica'}]
- [220, 0]
text2: [415, 660, {style: italic, size: 16,align: right, color: '123456'}]
barcode1: [100, 15, {type: 'barcode', symbology: 'code_25_interleaved'}]
PDF generation example:
pdf = Prawml::PDF.new('path_to_yaml/example.yml')
pdf.generate({
:text1 => 'Prawml',
:text2 => 'The pdf generator',
:barcode1 => 'My little barcode string'
}).render_file('example.pdf')
You can also pass an object that responds to methods described in YAML file.
type
: text|image|barcode [text]color
: RGB color [00000]fixed
: A fixed text. Ignores values and renders the static text informed [false]font
: Any Prawn supported font can be used [Times-Roman]align
: left|center|right [left]size
: float [12]style
: bold|normal|italic|bold_italic [normal]format
: Formating hooks (currency|date) [false]symbology
: Symbologies available in barby gem seen here [nil]git checkout -b my-new-feature
)git commit -am 'Added some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that prawml 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.