Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@edemaine/shtml2html
Advanced tools
Quick partial implementation of Apache's server-parsed HTML as a static converter to regular HTML. You thus need to manually run the converter whenever the input/data changes.
npm install -g @edemaine/shtml2html
shtml2html filename.shtml # produces filename.html
shtml2html *.shtml # produces *.html
<!--#include file="path"-->
includes a non-relative path<!--#include virtual="path"-->
includes a relative path
<!--#include virtual="path1" virtual="path2"-->
for multiple inclusions<!--#flastmod file="path"-->
:
modified date of non-relative path (via timefmt
)<!--#flastmod virtual="path"-->
:
modified date of relative path (via timefmt
)<!--#fsize file="path"-->
: size of non-relative path (via sizefmt
)<!--#fsize virtual="path"-->
: size of relative path (via sizefmt
)<!--#config key="value"-->
where key
is among:
echomsg
: message for unsupported #echo
errormsg
: error to include in the file when a directive fails
(a more descriptive error message should also be printed to console)sizefmt
: format for #fsize
, either "bytes" (default) or "abbrev"timefmt
: strftime format for LAST_MODIFIED
<!--#echo var="value"-->
where value
is among:
DOCUMENT_NAME
: name of .html
output (not .shtml
input)LAST_MODIFIED
: modified date of .shtml
input (via timefmt
)<!--#comment ...-->
gets removedFAQs
Convert Apache server-side rendered HTML to static HTML
The npm package @edemaine/shtml2html receives a total of 2 weekly downloads. As such, @edemaine/shtml2html popularity was classified as not popular.
We found that @edemaine/shtml2html 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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.