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 🙏

© 2024 – Pkg Stats / Ryan Hefner

email-otp-send

v1.5.0

Published

Quickly and securely send OTPs for user verification within your Node.js applications.

Downloads

2

Readme

Effortless and Secure OTP Emailing

Quickly and securely send OTPs for user verification within your Node.js applications.

Overview

email-otp-send is a powerful Node.js module that streamlines the process of sending secure, customizable OTP emails for user verification. It leverages the popular Nodemailer library and provides flexible parameters, intuitive error handling, and clear UI guidance, making integration effortless.

Features

Robust Security:

  • Generates random, unpredictable OTPs using a customizable character set of numbers
  • Offers optional OTP length control for enhanced flexibility.
  • Adheres to industry best practices for secure emailing.

Seamless Integration:

  • Works seamlessly with Nodemailer, providing access to a wide range of SMTP server options.
  • Simple and intuitive API for easy integration into your applications.

Flexibility and Customization:

  • Control OTP length, email subject and HTML for tailored experiences.
  • Handle optional parameters for advanced email configuration.

Exceptional Error Handling:

  • Catches and reports errors elegantly, providing meaningful messages for debugging.

  • Makes handling potential issues in your application easier.

Prerequisites

  • Node.js and npm (or yarn) installed on your system.
  • An SMTP server account with your preferred email provider.

Installation

npm i email-otp-send

Usage

//import package
const sendOtp =require('email-otp-send'); 

host ="host name of email provider" 
port ="port number"
user ="username of SMTP "
pass ="password"
email ="email address to send otp"

//otional parameter 
otpLength : length of OTP //default 6 if not passed
subject : subject of Email// default "Email Verification"

//gives otp sent to email
const otp = await sendOtp(host, port, user, pass, email, options = {otpLength:7})

Contributing:

We welcome contributions to the email-otp-send package!

License:

This package is licensed under the MIT License.

I hope this expanded information is helpful! Feel free to ask any further questions you may have.