MCPcopy Index your code
hub / github.com/Linen-dev/linen.dev / username

Function username

packages/serializers/src/user.ts:5–10  ·  view source on GitHub ↗
(displayName: string | null)

Source from the content-addressed store, hash-verified

3import { tc } from '@linen/utilities/tc';
4
5export function username(displayName: string | null) {
6 if (!displayName) {
7 return null;
8 }
9 return displayName.toLowerCase().replace(/\s+/g, '');
10}
11
12export function serializeUser(user: users): SerializedUser {
13 return {

Callers 5

createThreadImitationFunction · 0.90
user.test.tsFile · 0.90
createMessageImitationFunction · 0.90
sendMessageWrapperFunction · 0.90
serializeUserFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected