Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/elegantapp/pwa-asset-generator
/ functions
Functions
91 in github.com/elegantapp/pwa-asset-generator
⨍
Functions
91
◇
Types & classes
18
↓ 32 callers
Method
log
(...args: string[])
src/models/logger.ts:5
↓ 31 callers
Function
generateTempImages
( options: CLIOptions, source = './static/logo.png', output = './temp', )
src/main.test.ts:13
↓ 15 callers
Method
error
(...args: string[] | Error[])
src/models/logger.ts:8
↓ 12 callers
Method
warn
(...args: string[])
src/models/logger.ts:6
↓ 9 callers
Function
getAllSnapshotsMatchStatus
( result: Result, testSuite: string, )
src/main.test.ts:534
↓ 6 callers
Method
success
(...args: string[])
src/models/logger.ts:9
↓ 5 callers
Function
assertEntriesInHTMLOutput
( output: string, expectedOutput: string, )
src/main.test.ts:345
↓ 5 callers
Function
generateOutputPath
( options: Options, imagePath: string, isManifest = false, )
src/helpers/meta.ts:13
↓ 5 callers
Function
getPrefix
()
src/helpers/logger.ts:13
↓ 5 callers
Function
getTime
()
src/helpers/logger.ts:11
↓ 5 callers
Function
mapToIconImageFileObj
( fileNamePrefix: string, width: number, height?: number, )
src/helpers/images.ts:13
↓ 5 callers
Function
optionsWith
(overrides: Partial<Options> = {})
src/helpers/images.test.ts:9
↓ 5 callers
Function
readIndex
()
src/main.test.ts:275
↓ 3 callers
Function
convertBackslashPathToSlashPath
(backSlashPath: string)
src/helpers/file.ts:31
↓ 3 callers
Function
readManifest
()
src/main.test.ts:178
↓ 3 callers
Function
saveImagesToManifest
()
src/main.test.ts:157
↓ 3 callers
Function
saveManifest
(manifestMock: { name: string; display: string; scope: string; description: string;
src/main.test.ts:165
↓ 2 callers
Function
canNavigateTo
(source: string)
src/helpers/puppets.ts:262
↓ 2 callers
Function
collectDiagnostics
()
src/helpers/puppets.ts:82
↓ 2 callers
Function
generateAppleLaunchImageHtml
( savedImages: SavedImage[], options: Options, darkMode: boolean, )
src/helpers/meta.ts:113
↓ 2 callers
Function
generateImages
Generates PWA assets based on a source input and saves generated images in the output folder provided @param source - A local image file, a local HT
src/main.ts:37
↓ 2 callers
Function
getExtension
(file: string)
src/helpers/file.ts:8
↓ 2 callers
Function
getLocalBrowserInstance
( launchArgs: PuppeteerOptions, noSandbox: boolean, )
src/helpers/browser.ts:51
↓ 2 callers
Function
getSplashScreenMetaData
( options: Options, browser: Browser, )
src/helpers/puppets.ts:229
↓ 2 callers
Function
isUrl
(val: string)
src/helpers/url.ts:6
↓ 2 callers
Function
isUrlExists
(source: string)
src/helpers/url.ts:16
↓ 2 callers
Function
mapToImageFileObj
( fileNamePrefix: string, width: number, height: number, scaleFactor: number, orientation: Orientati
src/helpers/images.ts:25
↓ 2 callers
Method
raw
(...args: string[])
src/models/logger.ts:4
↓ 2 callers
Function
stripOnly
(key: string)
src/helpers/flags.ts:12
↓ 2 callers
Function
uniqWithDeepStrictEqual
(arr: T[])
src/helpers/images.ts:7
↓ 2 callers
Function
useShell
(isSourceUrl = false)
src/helpers/url.ts:62
↓ 1 callers
Function
doFilesLookSimilar
( fileAPath: string, fileBPath: string, testSuite: string, )
src/main.test.ts:510
↓ 1 callers
Function
fileUrl
(filePath: string)
src/helpers/file.ts:69
↓ 1 callers
Function
generateAppleTouchIconHtml
( savedImages: SavedImage[], options: Options, )
src/helpers/meta.ts:66
↓ 1 callers
Function
generateFaviconHtml
( savedImages: SavedImage[], options: Options, )
src/helpers/meta.ts:82
↓ 1 callers
Function
generateMsTileImageHtml
( savedImages: SavedImage[], options: Options, )
src/helpers/meta.ts:98
↓ 1 callers
Function
getAppDir
()
src/helpers/file.ts:34
↓ 1 callers
Function
getAppleSplashScreenData
( browser: Browser, options: Options, )
src/helpers/puppets.ts:22
↓ 1 callers
Function
getBrowserInstance
( launchArgs: PuppeteerOptions, noSandbox: boolean, )
src/helpers/browser.ts:119
↓ 1 callers
Function
getChromeBuildIdFromPuppeteer
()
src/helpers/installer.ts:37
↓ 1 callers
Function
getImageBase64Url
(imagePath: string)
src/helpers/file.ts:105
↓ 1 callers
Function
getLaunchedChromeVersionInfo
( chrome: LaunchedChrome, )
src/helpers/browser.ts:89
↓ 1 callers
Function
getLocalRevisionInfo
()
src/helpers/browser.ts:34
↓ 1 callers
Function
getMaskablePrefix
()
src/helpers/file.ts:55
↓ 1 callers
Function
getOptimalConcurrency
(imageCount: number)
src/helpers/puppets.ts:269
↓ 1 callers
Function
getPreferredBrowserRevisionInfo
()
src/helpers/installer.ts:62
↓ 1 callers
Function
getRelativeFilePath
( referenceFilePath: string, filePath: string, )
src/helpers/file.ts:84
↓ 1 callers
Function
getSystemBrowserInstance
( chrome: LaunchedChrome, launchArgs?: PuppeteerOptions, )
src/helpers/browser.ts:107
↓ 1 callers
Function
getVisualDiff
( fileAPath: string, fileBPath: string, )
src/main.test.ts:455
↓ 1 callers
Function
hasDarkModeElement
()
src/helpers/meta.ts:253
↓ 1 callers
Function
hasElement
(selector: string)
src/helpers/meta.ts:251
↓ 1 callers
Function
killBrowser
( browser: Browser, chrome: LaunchedChrome | undefined, )
src/helpers/browser.ts:179
↓ 1 callers
Function
launchSystemBrowser
()
src/helpers/browser.ts:78
↓ 1 callers
Function
locateTable
()
src/helpers/puppets.ts:48
↓ 1 callers
Function
saveImages
( imageList: Image[], source: string, output: string, options: Options, browser: Browser, )
src/helpers/puppets.ts:294
↓ 1 callers
Function
saveIndex
()
src/main.test.ts:268
↓ 1 callers
Function
saveVisualDiff
( filePath: string, diffFileBuffer: Buffer, testSuite: string, )
src/main.test.ts:492
↓ 1 callers
Method
trace
(...args: string[])
src/models/logger.ts:7
Function
addIconsToManifest
( manifestContent: ManifestJsonIcon[], manifestJsonFilePath: string, )
src/helpers/meta.ts:190
Function
addMetaTagsToIndexPage
( htmlMeta: HTMLMeta, indexHtmlFilePath: string, xhtml: boolean, )
src/helpers/meta.ts:236
Function
error
(...args: string[])
src/helpers/logger.ts:35
Function
formatMetaTags
(htmlMeta: HTMLMeta)
src/helpers/meta.ts:223
Function
generateHtmlForIndexPage
( savedImages: SavedImage[], options: Options, )
src/helpers/meta.ts:135
Function
generateIconsContentForManifest
( savedImages: SavedImage[], options: Options, )
src/helpers/meta.ts:43
Function
generateImages
( source: string, output: string, options: Options, )
src/helpers/puppets.ts:398
Function
getAddress
( source: string, options: Options, )
src/helpers/url.ts:31
Function
getDefaultOptions
()
src/helpers/flags.ts:36
Function
getFileUrlOfPath
(source: string)
src/helpers/file.ts:81
Function
getHtmlShell
( imagePath: string, options: Options, isUrl: boolean, )
src/helpers/file.ts:110
Function
getIconImages
(options: Options)
src/helpers/images.ts:39
Function
getImageSavePath
( imageName: string, outputFolder: string, ext: Extension, maskable: boolean, isMaskableIcon: boolea
src/helpers/file.ts:48
Function
getRelativeImagePath
( outputFilePath: string, imagePath: string, )
src/helpers/file.ts:93
Function
getShellHtml
( source: string, options: Options, )
src/helpers/url.ts:56
Function
getShellHtmlFilePath
()
src/helpers/file.ts:46
Function
getSplashScreenImages
( splashScreenData: LaunchScreenSpec[], options: Options, )
src/helpers/images.ts:78
Function
identity
(image: Image)
src/helpers/images.test.ts:17
Function
installPreferredBrowserRevision
()
src/helpers/installer.ts:103
Function
isHtmlFile
(file: string)
src/helpers/file.ts:28
Function
isImageFile
(file: string)
src/helpers/file.ts:11
Function
isPathAccessible
( filePath: string, mode?: number | undefined, )
src/helpers/file.ts:124
Function
log
(...args: string[])
src/helpers/logger.ts:20
Function
logger
(prefix: string, options?: CLIOptions)
src/helpers/logger.ts:7
Function
makeDirRecursiveSync
(dirPath: string)
src/helpers/file.ts:133
Function
normalizeOnlyFlagPairs
( flag1Key: keyof Options, flag2Key: keyof Options, opts: CLIOptions, logger: LoggerFunction, )
src/helpers/flags.ts:6
Function
normalizeOutput
(output: string)
src/helpers/flags.ts:29
Function
normalizeSandboxOption
( noSandbox: boolean | undefined, logger: LoggerFunction, )
src/helpers/flags.ts:60
Function
raw
(...args: string[])
src/helpers/logger.ts:15
Function
scrapeDimensionsTable
(selector: string)
src/helpers/puppets.ts:42
Function
success
(...args: string[])
src/helpers/logger.ts:39
Function
trace
(...args: string[])
src/helpers/logger.ts:30
Function
warn
(...args: string[])
src/helpers/logger.ts:25