commonExecutableFileExtensions

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: exe, msi, bat, cmd, com, scr, bin, run, app, deb, rpm, dmg, pkg, apk, ipa, jar, sh, py, pl, rb, php, js, vbs, ps1, cgi Extended formats includes: gadget, jsr, wsf, pi, pif, scf, lnk, inf, reg, msc, cpl, drv, sys, ocx, dll, so, dylib, bundle, framework, action, workflow, command, tool, out, elf, bin32, bin64, x86, x64, arm, mips, sparc, ppc, prg, prc, xex, xbe, nro, nso, rpx, wbfs, cia, gb, gbc, gba, nds, nes, smc, sfc, n64, z64, v64

Params

  1. settings{}TCommonFileExtensionsSettings

    Settings to customize the function behavior

Return

  1. -Array<String>

    The array of extensions

Example

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

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