trnct
v1.0.0
Published
Truncate all specified vowels from given word unless it is the first character
Downloads
3
Readme
trnct
Truncate vowels ~
e
ℹ️🅾️
Instalation
$ npm install trnct
Usage
const trnct = require('trnct');
trnct('vowels');
//=> 'vwls'
API
Table of Contents
trnct
Truncate all specified vowels from given word unless it is the first character
Parameters
str
String inputvowels
(Array<String> | String) vowels to truncate (optional, default['e','i','o']
)
Examples
trnct('extension');
//=> 'extnsn'
trnct('extension', 'ei');
//=> 'extnson'
Returns String truncated string