Socket
Book a DemoInstallSign in
Socket

name-initials-generator

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

name-initials-generator

A package to generate initials from a name

latest
npmnpm
Version
1.0.0
Version published
Maintainers
0
Created
Source

Name Initials Generator

npm version

A simple npm package to generate initials from a name, perfect for use in profile pictures or other areas where you want to represent a name with initials.

Installation

You can install this package using npm:

npm install name-initials-generator
const getInitials = require('name-initials-generator');

const name1 = 'John Doe';
const initials1 = getInitials(name1);

console.log(`The initials for "${name1}" are: ${initials1}`); // Outputs: The initials for "John Doe" are: JD

const name2 = 'Jane A. Smith';
const initials2 = getInitials(name2);

console.log(`The initials for "${name2}" are: ${initials2}`); // Outputs: The initials for "Jane A. Smith" are: JAS

FAQs

Package last updated on 10 Aug 2024

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.