Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/freeCodeCamp/freeCodeCamp
/ functions
Functions
2,118 in github.com/freeCodeCamp/freeCodeCamp
⨍
Functions
2,118
◇
Types & classes
496
↓ 493 callers
Method
send
* Sends an email using nodemailer. * * @param param Email options. * @param param.to Email address to send to. * @param param.from Email a
api/src/plugins/mail-providers/nodemailer.ts:46
↓ 262 callers
Function
render
(ui: ReactElement, store: Store)
client/utils/test-utils.tsx:6
↓ 199 callers
Function
useTranslation
()
client/__mocks__/react-i18next.js:50
↓ 155 callers
Function
put
( path: string, body: unknown )
client/src/utils/ajax.ts:66
↓ 138 callers
Function
plugin
()
tools/challenge-parser/parser/plugins/add-hooks.js:3
↓ 96 callers
Function
parseFixture
(filename)
tools/challenge-parser/parser/__fixtures__/parse-fixture.js:7
↓ 81 callers
Function
superRequest
( resource: string, config: { method: 'GET' | 'POST' | 'PUT' | 'DELETE'; setCookies?: string[];
api/vitest.utils.ts:58
↓ 63 callers
Function
createFlashMessage
( flash: FlashMessageArg )
client/src/components/Flash/redux/index.ts:31
↓ 57 callers
Function
done
()
client/src/templates/Challenges/classic/xterm.tsx:84
↓ 52 callers
Function
createStore
(preloadedState = {})
client/src/redux/create-store.ts:20
↓ 41 callers
Function
oid
()
api/__fixtures__/exam-environment-exam.ts:17
↓ 40 callers
Function
focusEditor
({ page, isMobile }: { page: Page; isMobile: boolean; })
e2e/utils/editor.ts:7
↓ 38 callers
Function
openModal
(page: Page)
e2e/shortcuts-modal.spec.ts:25
↓ 37 callers
Function
withTranslation
()
client/__mocks__/react-i18next.js:37
↓ 36 callers
Function
getEditors
(page: Page)
e2e/utils/editor.ts:3
↓ 32 callers
Function
getSection
(tree, marker, depth)
tools/challenge-parser/parser/plugins/utils/get-section.js:48
↓ 30 callers
Function
createAsyncTypes
(action: string)
client/src/utils/create-types.ts:34
↓ 29 callers
Method
setup
(opts?: { useNodeModules?: boolean; tsconfig?: string })
tools/client-plugins/browser-scripts/modules/typescript-compiler.ts:19
↓ 28 callers
Function
clearEditor
({ page, browserName, isMobile = false }: { page: Page; browserName: string; isMobile?: boolean; }
e2e/utils/editor.ts:25
↓ 26 callers
Function
convertToHanzi
( raw: string, expectedAnswer: { hanzi: string; pinyin: string } )
client/src/templates/Challenges/components/pinyin-to-hanzi-input.tsx:18
↓ 25 callers
Function
callGA
(payload: GAevent)
client/src/analytics/call-ga.ts:116
↓ 25 callers
Function
convertToPinyinWithTones
(raw: string)
client/src/templates/Challenges/components/pinyin-tone-input.tsx:12
↓ 25 callers
Function
createUserInput
(email: string)
api/src/utils/create-user.ts:61
↓ 23 callers
Function
parseBlanks
(text: string)
client/src/templates/Challenges/fill-in-the-blank/parse-blanks.ts:47
↓ 22 callers
Function
createPointerEvent
( type: 'pointerdown' | 'pointermove' | 'pointerup' | 'pointercancel', x: number, y: number, options?:
client/src/templates/Challenges/classic/content-widget-events.test.tsx:5
↓ 22 callers
Function
getMetaData
()
tools/challenge-helper-scripts/helpers/project-metadata.ts:21
↓ 22 callers
Function
getProjectPath
()
tools/challenge-helper-scripts/helpers/get-project-info.ts:1
↓ 22 callers
Function
mapErr
(promise: Promise<T>)
api/src/utils/index.ts:80
↓ 21 callers
Function
compareTexts
( original: string, utterance: string )
client/src/templates/Challenges/components/speaking-modal-helpers.ts:34
↓ 21 callers
Method
execute
(data, timeout = 1000)
packages/challenge-builder/src/worker-executor.js:60
↓ 21 callers
Function
formatMessage
(message: Message)
api/src/plugins/redirect-with-message.ts:43
↓ 21 callers
Function
handleDownloadLink
( { os, architecture }: UserOSState, downloadLinks: string[] )
client/src/templates/Challenges/exam-download/show.tsx:203
↓ 20 callers
Function
addText
(sectionIds)
tools/challenge-parser/parser/plugins/add-text.js:7
↓ 19 callers
Function
createAccessToken
(userId: string, ttl?: number)
api/src/utils/tokens.ts:36
↓ 19 callers
Function
createMdastToHtml
tools/challenge-parser/parser/plugins/utils/i18n-stringify.js:127
↓ 19 callers
Function
serializeDates
(data: T)
api/vitest.utils.ts:286
↓ 19 callers
Function
userSelector
client/src/redux/selectors.js:211
↓ 18 callers
Function
format
(x)
client/src/utils/format.js:3
↓ 17 callers
Function
createSuperRequest
(config: { method: 'GET' | 'POST' | 'PUT' | 'DELETE'; setCookies?: string[]; })
api/vitest.utils.ts:91
↓ 17 callers
Function
normalizeDate
(date?: Prisma.JsonValue)
api/src/utils/normalize.ts:69
↓ 17 callers
Function
setupServer
()
api/src/routes/helpers/auth-helpers.test.ts:25
↓ 16 callers
Function
alertToBeVisible
(page: Page, text: string)
e2e/utils/alerts.ts:3
↓ 16 callers
Function
getRedirectParams
( req: { headers: { referer?: string } }, _normalizeParams = normalizeParams )
api/src/utils/redirection.ts:133
↓ 15 callers
Function
input
(text: string)
tools/client-plugins/browser-scripts/python-worker.ts:87
↓ 15 callers
Function
omit
* Returns a subset of the given object with the values or properties given removed. * @param obj - An array or an object literal. * @param vals - It
api/src/plugins/shadow-capture.ts:115
↓ 14 callers
Function
challengeMetaSelector
client/src/templates/Challenges/redux/selectors.js:19
↓ 14 callers
Function
getLines
(contents: string, range?: number[])
packages/shared/src/utils/get-lines.ts:1
↓ 14 callers
Function
hasValue
(value: string)
client/src/components/profile/components/profile-completeness.tsx:45
↓ 14 callers
Function
isValidUsername
(str: string)
packages/shared/src/utils/validate.ts:33
↓ 14 callers
Function
renderModal
(props = {})
client/src/templates/Introduction/components/reset-progress-modal.test.tsx:95
↓ 14 callers
Function
renderWithProvider
(ui: React.ReactElement)
client/src/templates/Introduction/components/super-block-accordion.test.tsx:63
↓ 14 callers
Function
request
( method: 'POST' | 'PUT' | 'DELETE', path: string, body: unknown )
client/src/utils/ajax.ts:80
↓ 13 callers
Function
attachContentWidgetEvents
( upperJawNode: HTMLElement )
client/src/templates/Challenges/classic/content-widget-events.ts:94
↓ 13 callers
Method
check
(id, block)
curriculum/src/test/utils/mongo-ids.js:10
↓ 13 callers
Function
findOrCreateUser
( fastify: FastifyInstance, email: string )
api/src/routes/helpers/auth-helpers.ts:11
↓ 13 callers
Function
post
( path: string, body: unknown )
client/src/utils/ajax.ts:59
↓ 13 callers
Function
replacePrivateData
(user: RawUser)
api/src/routes/public/user.ts:61
↓ 13 callers
Function
setTheme
( request: APIRequestContext, theme: 'default' | 'night' )
e2e/editor.spec.ts:6
↓ 13 callers
Function
spreadThePayloadOnUser
(state, payload)
client/src/redux/index.js:100
↓ 12 callers
Function
buildTranscript
(commands: SceneCommand[])
client/src/templates/Challenges/components/scene/scene-helpers.ts:3
↓ 12 callers
Function
createDomTree
()
client/src/templates/Challenges/classic/content-widget-events.test.tsx:66
↓ 12 callers
Function
createError
* Returns a function which optionally takes arguments to format an error message. * @param code - Identifier for the error. * @param message - Human
api/src/exam-environment/utils/errors.ts:52
↓ 12 callers
Function
createLintStagedConfig
packages/eslint-config/.lintstagedrc.js:3
↓ 12 callers
Function
getLiveRegion
()
client/src/templates/Challenges/components/independent-lower-jaw.test.tsx:81
↓ 12 callers
Method
postMessage
(msg)
curriculum/src/test/utils/pseudo-worker.js:65
↓ 11 callers
Function
mockWorker
({ init, postMessage, terminate } = {})
packages/challenge-builder/src/worker-executor.test.js:8
↓ 11 callers
Function
reducer
( state: FlashState = initialState, action: ReducerPayload<FlashActionTypes> )
client/src/components/Flash/redux/index.ts:61
↓ 11 callers
Function
toggleFlag
(flag: keyof ProfileUI)
client/src/components/profile/components/profile-privacy.tsx:43
↓ 11 callers
Function
toggleFlag
(flag: keyof ProfileUI)
client/src/components/settings/privacy.tsx:41
↓ 11 callers
Function
validateChallenges
( foundChallenges: Challenge[], meta: { challengeOrder: Challenge[]; dashedName: string }, throwOnError?
curriculum/src/build-superblock.ts:52
↓ 10 callers
Function
allowTrailingSlash
(url: string)
e2e/utils/url.ts:1
↓ 10 callers
Function
getButton
(translationKey: string)
client/src/templates/Challenges/exam/show.test.tsx:265
↓ 10 callers
Function
getCompletedPercentage
( completedChallengesIds: string[] = [], currentBlockIds: string[] = [], currentChallengeId: string )
client/src/utils/get-completion-percentage.ts:6
↓ 10 callers
Function
getPoints
( progressTimestamps: ProgressTimestamp[] | null )
api/src/utils/progress.ts:32
↓ 10 callers
Function
getSuperOrder
( superblock: string, showUpcomingChanges = SHOW_UPCOMING_CHANGES )
curriculum/src/super-order.ts:14
↓ 10 callers
Function
isLanding
(pathname: string)
client/src/utils/path-parsers.ts:7
↓ 10 callers
Function
isValidPicture
(picture: string)
client/src/components/profile/components/profile-completeness.tsx:36
↓ 10 callers
Function
parseHanziPinyinPairs
* Parses all hanzi-pinyin pairs from text * @param {string} text - Text potentially containing multiple hanzi (pinyin) patterns * @returns {Array<{h
tools/challenge-parser/parser/plugins/utils/i18n-stringify.js:25
↓ 10 callers
Function
post
(url: string)
api/src/routes/apps/classroom.test.ts:29
↓ 10 callers
Function
stripHtmlTags
(text: string)
client/src/templates/Challenges/components/speaking-modal-helpers.ts:185
↓ 10 callers
Function
typeVerifyPhrase
()
client/src/templates/Introduction/components/reset-progress-modal.test.tsx:99
↓ 10 callers
Function
updateMetaData
(newMetaData: Record<string, unknown>)
tools/challenge-helper-scripts/helpers/project-metadata.ts:30
↓ 10 callers
Function
validateBlockName
( block: string, existingBlocks: string[] )
tools/challenge-helper-scripts/utils.ts:287
↓ 9 callers
Function
authedRequest
({ request, method, endpoint, data }: { request: APIRequestContext; method: 'post' | 'put'; endp
e2e/utils/request.ts:6
↓ 9 callers
Function
calculateStreaks
(calendar: Record<string, number>)
client/src/components/profile/components/stats.tsx:23
↓ 9 callers
Function
clickConfirm
()
client/src/templates/Introduction/components/reset-progress-modal.test.tsx:105
↓ 9 callers
Function
createFetchMock
({ ok = true, body = {} } = {})
api/vitest.utils.ts:263
↓ 9 callers
Function
devLogin
()
api/vitest.utils.ts:240
↓ 9 callers
Function
getChallengePaths
({ currentCurriculumPaths }: { currentCurriculumPaths: NavigationPaths; })
client/src/templates/Challenges/utils/challenge-paths.ts:3
↓ 9 callers
Function
getSessionChallengeData
()
client/src/utils/session-storage.ts:39
↓ 9 callers
Function
getSolutionDisplayType
({ solution, githubLink, challengeFiles, challengeType, examResults }: CompletedChallenge)
client/src/utils/solution-display-type.ts:14
↓ 9 callers
Function
getSuperblockStructure
(superblockFilename: string)
curriculum/src/file-handler.ts:219
↓ 9 callers
Function
got
(ext: string)
client/src/templates/Challenges/components/interactive-editor.tsx:51
↓ 9 callers
Function
isExpired
(token: Token | DbToken)
api/src/utils/tokens.ts:65
↓ 9 callers
Function
isMicrosoftTranscriptLink
(value: string)
packages/shared/src/utils/validate.ts:42
↓ 9 callers
Function
makeStore
(overrides: Partial<typeof defaultProfileUI> = {})
client/src/components/profile/components/profile-privacy.test.tsx:23
↓ 9 callers
Function
normalizeParams
( { returnTo, origin, pathPrefix }: Partial<RedirectParams>, _homeLocation = HOME_LOCATION )
api/src/utils/redirection.ts:57
↓ 9 callers
Function
normalizeText
(text: string)
client/src/templates/Challenges/components/speaking-modal-helpers.ts:3
↓ 9 callers
Function
transformSuperBlock
( superblockData: { blocks?: string[]; chapters?: Chapter[]; }, { showComingSoon } = { showComin
curriculum/src/build-superblock.ts:475
↓ 9 callers
Function
useSubmit
()
client/src/templates/Challenges/utils/fetch-all-curriculum-data.tsx:88
next →
1–100 of 2,118, ranked by callers