- Configurable server URL (default: pedshub.com) - Android + iOS platforms initialized - Dark theme matching quiz app (#0f172a) - Status bar and navigation bar color matched - Auto-redirect on subsequent launches - App ID: com.pedshub.quiz, App Name: PedsHub Build: cd mobile && npx cap sync && npx cap open android Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
12 lines
331 B
JavaScript
12 lines
331 B
JavaScript
'use strict';
|
|
const os = require('os');
|
|
|
|
const homeDirectory = os.homedir();
|
|
|
|
module.exports = pathWithTilde => {
|
|
if (typeof pathWithTilde !== 'string') {
|
|
throw new TypeError(`Expected a string, got ${typeof pathWithTilde}`);
|
|
}
|
|
|
|
return homeDirectory ? pathWithTilde.replace(/^~(?=$|\/|\\)/, homeDirectory) : pathWithTilde;
|
|
};
|