New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

nodebb-widget-ns-birthdays

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodebb-widget-ns-birthdays

Efficient widget to output all today's birthdays of community members.

latest
Source
npmnpm
Version
3.0.0
Version published
Weekly downloads
9
50%
Maintainers
1
Weekly downloads
 
Created
Source

NodeBB Widget: Birthdays

Efficient widget to output all today's birthdays of community members.

Table of Contents

Version Dependencies Code Climate Travis

  • Customization
  • Screenshots
  • How does it work?
  • Future ideas for improvement

Customization

You could change styles for these classes:

  • .birthdays .birthday-item, responsible for line in the list
  • .birthdays .birthday-name, responsible for the user's name
  • .birthdays .birthday-age, responsible for the user's age (Also age could be disabled in widget settings)

If you want change icon style, refer to .fa class.

Screenshots

Widget Preview

How does it work?

  • At start, job will be triggered to check all users that have birthday today. It's an async process. By design it will take some time.
  • Every day at midnight (Server Time), job to find today's birthdays is fired
  • Widget returns birthdays that are stored in memory, It's fast and efficient.

Optimisations:

  • to store today's birthdays in memory
  • to check for birthdays only once per day

Keywords

widget

FAQs

Package last updated on 05 Dec 2018

Did you know?

Socket

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.

Install

Related posts