mirror of
https://github.com/BewlyBewly/BewlyBewly.git
synced 2025-04-14 13:15:29 +00:00
12 lines
416 B
TypeScript
12 lines
416 B
TypeScript
import { resolve } from 'path'
|
|
import { bgCyan, black } from 'kolorist'
|
|
|
|
export const port = parseInt(process.env.PORT || '') || 10804
|
|
export const r = (...args: string[]) => resolve(__dirname, '..', ...args)
|
|
export const isDev = process.env.NODE_ENV !== 'production'
|
|
|
|
export function log(name: string, message: string) {
|
|
// eslint-disable-next-line no-console
|
|
console.log(black(bgCyan(` ${name} `)), message)
|
|
}
|