MCPcopy Index your code
hub / github.com/nodeSolidServer/node-solid-server / loadAccounts

Function loadAccounts

bin/lib/cli-utils.mjs:44–49  ·  view source on GitHub ↗
({ root, serverUri, hostname })

Source from the content-addressed store, hash-verified

42}
43
44export function loadAccounts ({ root, serverUri, hostname }) {
45 const files = fs.readdirSync(root)
46 hostname = hostname || new URL(serverUri).hostname
47 const isUserDirectory = new RegExp(`.${hostname}$`)
48 return files.filter(file => isUserDirectory.test(file))
49}
50
51export function loadUsernames ({ root, serverUri }) {
52 const hostname = new URL(serverUri).hostname

Callers 2

updateIndex.mjsFile · 0.90
loadUsernamesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected