mirror of
https://github.com/primedigitaltech/azon_seeker.git
synced 2026-01-19 21:23:30 +08:00
14 lines
553 B
TypeScript
14 lines
553 B
TypeScript
import { resolve } from 'node:path';
|
|
import process from 'node:process';
|
|
import { bgCyan, black } from 'kolorist';
|
|
|
|
export const port = Number(process.env.PORT || '') || 3303;
|
|
export const r = (...args: string[]) => resolve(__dirname, '..', ...args);
|
|
export const isDev = process.env.NODE_ENV !== 'production';
|
|
export const isFirefox = process.env.EXTENSION === 'firefox';
|
|
export const outputDir = isFirefox ? 'extension-firefox' : 'extension';
|
|
|
|
export function log(name: string, message: string) {
|
|
console.log(black(bgCyan(` ${name} `)), message);
|
|
}
|