1.0.0 • Published 6 years ago
trnct v1.0.0
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
1.0.0
6 years ago