1.0.0 • Published 6 years ago
initialify v1.0.0
initialify
Makes initials from words in string. Useable for name initials or short company names.
Install
$ npm install initialify
Usage
const initialify = require('initialify');
initialify('John Doe');
// returns 'JD'
initialify('John Doe', true);
// returns 'J.D.'
initialify('This is example string');
// returns 'TIES'
initialify('This is example string', true);
// returns 'T.I.E.S.'
initialify('Healthy lifestyle institute ');
// returns 'HLI'
initialify('Healthy lifestyle institute ', true);
// returns 'H.L.I.'
License
MIT © Damian Polak
1.0.0
6 years ago