node-initials
To extract initials from names.
Installation
To install node-initials, use npm:
npm i node-initials -S
Usage
; ;/* 'JO' */ ;/* 'WI' */ ;/* 'JW' */ ;/* '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