UNPKG

cloudcmd

Version:

File manager for the web with console and editor

17 lines (11 loc) 288 B
'use strict'; const isString = (a) => typeof a === 'string'; module.exports = (value) => { if (!isString(value)) return ''; if (value.length === 1) return ''; if (value && !value.includes('/')) return `/${value}`; return value; };