commonVideoFileExtensions

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: mp4, avi, mkv, mov, wmv, flv, webm, m4v, mpg, mpeg, 3gp, 3g2, vob, ts, mts, m2ts, ogv, divx, xvid, asf Extended formats includes: h264, h265, rm, rmvb, swf, f4v, f4p, f4a, f4b, mod, tod, mxf, r3d, braw, prores, dnxhd, avchd, mks, mk3d, dav, dat, ‘dvrms, evo, ifo, ivf, m1v, m2v, m4p, mp2v, mpe, mpv, mpv2, mqv, nsv, nuv, ogg, qt, ram, rec, rv, smk, thp, vc1, vfw, vid, vivo, vp6, vp7, vp8, vp9, wm, wmp, wvx, yuv

Params

  1. settings{}TCommonFileExtensionsSettings

    Settings to customize the function behavior

Return

  1. -Array<String>

    The array of extensions

Example

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

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