
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
webmaker-mailroom
Advanced tools
This module outputs **rendered/localized html** for Webmaker emails given a template name, some arbitrary data, and a locale.
This module outputs rendered/localized html for Webmaker emails given a template name, some arbitrary data, and a locale.
npm install webmaker-mailroom
var mailroom = require('webmaker-mailroom');
// Configure
var templateName = 'badge_awarded';
var data = {
name: 'Kate Hudson',
faveTeam: 'DFB'
};
var options = {
locale: 'en-US',
partial: true
};
var email = mailroom.render(templateName, data, options);
// Output
// email.html: The html of the email body
// email.subject: The subject of the html
locale
- The locale of the email, defaults to en-US
.partial
- Only render the body of the email, do not include html headers/footers. Defaults to false
. Do NOT set this to true if you are passing the email directly to node-mailer
, you want to include the full html.If you are developing a template, install gulp with npm install -g gulp
and simply run:
npm install
gulp dev
This will start a watch process, build test files as you make changes, and run a server so you can view them in a browser.
gulp test
gulp new
. Choose an appropriate id for your email, e.g. my_awesome_email
.templates/my_awesome_email/index.html
, create a template. Refer to the nunjucks templating docs for how to add templated data.templates/my_awesome_email/index.js
, add a name, description, and some test data for your email.gulp test
to validate your template with the test data you provided, or gulp dev
to see the email in the browser.FAQs
This module outputs **rendered/localized html** for Webmaker emails given a template name, some arbitrary data, and a locale.
We found that webmaker-mailroom demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 open source maintainers 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.