commonEmailFileExtensions

Type:Function
Status:stable
Since:1.0.0
Platform:jsnode
@blackbyte.sugar.shared.extension

This function allows you to get an array of common text file extensions with or without the dot Common formats includes: eml, msg, pst, ost, oft, vcf, mbox, emlx, dbx. Extended formats includes: email, emix, mbx, tbb, wab, contact, group, p7m, p7s, smime, winmail.dat, tnef, vcs, vcard, ldif, nws, fol, pmm, pmr, pmi, mmf, msf, snm, bms, ims, mbg, arc, pab, oab, nk2, pip.

Params

  1. settings{}TCommonFileExtensionsSettings

    Settings to customize the function behavior

Return

  1. -Array<String>

    The array of extensions

Example

import { commonEmailFileExtensions } from '@blackbyte/sugar/extension';
const extensions = commonEmailFileExtensions();

Settings

  1. dotfalseboolean

    If true, the dot will be added to the extension

  2. exclude{(‘esm’|‘cjs’)[]}Array<String>

    An array of extensions to exclude

  3. extendedfalseboolean

    If true, the extended formats will be included