
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
page-crafter
Advanced tools
A tool for simply templating content pages using handlebars templating syntax with partials support.
pagecraft <dir> [options]
All files with a .handlebars
extension will be run through the handlebars
templating engine.
Any handlebars files with a leading _
underscore in the name will be
registered as partials and not available in the final output.
All other files will be copied as-is to the output directory.
option | Description |
---|---|
-h,--help | help message |
-o,--out | Specify 'out' directory; default 'dist' |
-p,--params | Specify a YAML parameter file to be used as template context |
-c,--clean | Remove the 'out' directory before build |
-v,--version | Print version information |
Given the following input directory structure:
website/
├── css/
│ ├── bootstrap.min.css
│ └── bootstrap-theme.min.css
├── js/
│ └── bootstrap.min.js
├── shared-partials/
│ ├── _navbar.html.handlebars
│ └── _footer.html.handlebars
├── index.html.handlebars
└── about-us.html.handlebars
A YAML parameter file named web-params.yml
at the same level as website/
with the following contents:
---
sales_phone: 555-555-5555
sales_email: sales@example.org
And running the following command:
pagecraft website/ -o dist/ -p web-params.yml
The following will occur:
css/
and js/
will be copied as-is to a new dist/
foldershared-partials/_navbar.html
and
shared-partials/_footer.html
will be registered and available to be used in
the index.html.handlebars
and about-us.html.handlebars
files as {{> shared-partials/_navbar.html }}
. Notice that they are namespaced by their
relative folder.sales_phone
and sales_email
contents of web-params.yml
will be
available as context for each template.index.html
and about-us.html
will be created in the dist/
folder
after running through the handlebars templater with all available partials
and context parameters.The output will be:
dist/
├── css/
│ ├── bootstrap.min.css
│ └── bootstrap-theme.min.css
├── js/
│ └── bootstrap.min.js
├── shared-partials/
├── index.html
└── about-us.html
FAQs
Page Crafter =======================
The npm package page-crafter receives a total of 0 weekly downloads. As such, page-crafter popularity was classified as not popular.
We found that page-crafter 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.