npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

identify-ejs

v1.0.1

Published

Identify Africa newsletter template packaged as an EJS helper.

Readme

Identify Africa Newsletter EJS

A reusable EJS template plus helper for rendering the Identify Africa Monthly Insights newsletter in Node.js projects or email pipelines.

Installation

npm install identify-ejs

Usage

const { renderNewsletter } = require("identify-ejs");

const html = renderNewsletter({
  newsletterTitle: "Identify Africa Monthly Insights – November Edition",
  tagline: "Your monthly guide to smarter, safer verification.",
  heroImage: "https://example.com/hero.jpg",
  website: "www.identifyafrica.com",
  contactEmail: "[email protected]",
  contactPhone: "+234 000 0000",
  footerNote: "Identify Africa • Smarter, safer verification",
  articles: [
    { title: "Secure onboarding", summary: "How AI reduces manual review load." },
    { title: "Compliance spotlight", summary: "What to know about KYC updates." },
  ],
});

// send html to an email API, save as file, etc.

Template Variables

  • newsletterTitle (string) – main heading, defaults to Identify Africa copy.
  • tagline (string) – supporting subtitle.
  • heroImage (string) – URL/base64/local data for header photo (optional).
  • brandImage (string) – optional masthead image displayed in the orange bar.
  • brandTitle (string) – optional text label if you want to show words beside the logo.
  • brandImageAlt (string) – accessible text for the masthead image.
  • articles (array) – optional { title, summary } objects.
  • website, contactEmail, contactPhone (string) – footer metadata.
  • footerNote (string) – footer text, default to Identify Africa tagline.

Bundled Assets

Drop your preferred hero image into assets/images/hero.jpg. When no heroImage is provided at render time, the helper inlines that file as a base64 data URI so the preview works offline. Any jpg, jpeg, png, or gif filename is fine.

Similarly, place the masthead artwork in assets/images/ named map1.png, map1.jpg, map1.jpeg, or map1.svg. The helper auto-detects the first matching file and uses it without adding its own background. You can override by passing brandImage directly.

Programmatic Access

Besides renderNewsletter, the package also exports:

  • template – the raw EJS source as a string.
  • templatePath – absolute path to the .ejs file for custom rendering pipelines.
  • heroAssetPath – where the default hero image is loaded from.
  • brandAssetCandidates – list of file names checked for the masthead image.

Development

npm install
npm test

Feel free to adapt the template or extend helper utilities before publishing to npm.