Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
nanoc-tidy.rb is a
nanoc
filter that adds
tidy-html5
support to nanoc.
The filter can format and validate HTML produced
during the
nanoc
build process.
Defaults
The following example executes tidy with the default settings.
See Nanoc::Tidy.default_argv
for more details:
# Rules
require "nanoc-tidy"
compile "/index.html.erb" do
layout("/default.*")
filter(:erb)
filter(:tidy)
write("/index.html")
end
Option: argv
The argv option forwards command line arguments directly to
the tidy-html5 executable.
Nanoc::Tidy.default_argv
returns the default command line arguments forwarded to
tidy-html5:
# Rules
require "nanoc-tidy"
compile "/index.html.erb" do
layout("/default.*")
filter(:erb)
filter(:tidy, argv: ["-upper"])
write("/index.html")
end
Option: exe
The "exe" option can be used to change the default executable from "tidy5" to something else, the most common alternative might be "tidy":
# Rules
require "nanoc-tidy"
compile "/index.html.erb" do
layout("/default.*")
filter(:erb)
filter(:tidy, exe: "tidy")
write("/index.html")
end
nanoc-tidy.rb can be installed via rubygems.org:
gem install nanoc-tidy.rb
FAQs
Unknown package
We found that nanoc-tidy.rb demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.