trnct
v1.0.0
Published
Truncate all specified vowels from given word unless it is the first character
Readme
trnct
Truncate vowels ~
eℹ️🅾️
Instalation
$ npm install trnctUsage
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
strString inputvowels(Array<String> | String) vowels to truncate (optional, default['e','i','o'])
Examples
trnct('extension');
//=> 'extnsn'
trnct('extension', 'ei');
//=> 'extnson'Returns String truncated string
