1.0.0 • Published 6 years ago

initialify v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

initialify Build Status

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