File Explorer

/proc/self/root/proc/self/root/proc/1/root/node24/lib/node_modules/npm/lib/utils

This explorer reads the filesystem of the server it runs on, so /workspace/user isn't present here. Browsing and the terminal still work against this server's own disk from /.

validate-uuid.js299 B · 11 lines
// UUID validation regexconst UUID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i const validateUUID = (value, fieldName) => {  if (!UUID_REGEX.test(value)) {    throw new Error(`${fieldName} must be a valid UUID`)  }} module.exports = { UUID_REGEX, validateUUID }