MCPcopy
hub / github.com/faker-js/faker / commonFileExt

Method commonFileExt

src/modules/system/index.ts:143–145  ·  view source on GitHub ↗

* Returns a commonly used file extension. * * @example * faker.system.commonFileExt() // 'gif' * * @since 3.1.0

()

Source from the content-addressed store, hash-verified

141 * @since 3.1.0
142 */
143 commonFileExt(): string {
144 return this.fileExt(this.faker.helpers.arrayElement(commonMimeTypes));
145 }
146
147 /**
148 * Returns a file type.

Callers 2

commonFileNameMethod · 0.95
system.spec.tsFile · 0.80

Calls 2

fileExtMethod · 0.95
arrayElementMethod · 0.80

Tested by

no test coverage detected