New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

node-initials

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-initials

To extract initials from names

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-87.5%
Maintainers
1
Weekly downloads
 
Created
Source

node-initials

To extract initials from names.

Installation

To install node-initials, use npm:

npm i node-initials -S

Usage

import initials from 'node-initials';

initials('John');
/* 'JO' */

initials('', 'Wick');
/* 'WI' */

initials('John', 'Wick');
/* 'JW' */

initials('John Wick');
/* 'JW' */

Options

  • firstName - Define First Name or Full Name to get initials.
  • lastName - Define Last Name to include in initials (default: null) [OPTIONAL]

Tests

npm install
npm test

Keywords

FAQs

Package last updated on 18 Apr 2019

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc