Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import path from 'path';
import { createInternalDebugger } from '@boost/internal';
import { createTranslator } from '@boost/translate';
import { LogLevel } from './types';
export const debug = createInternalDebugger('log');
export const msg = createTranslator('log', path.join(__dirname, '../res'));
// In order of priority!
export const LOG_LEVELS: LogLevel[] = ['log', 'trace', 'debug', 'info', 'warn', 'error'];
import { createInternalDebugger } from '@boost/internal';
export const debug = createInternalDebugger('args');
// Default values for option types.
export const DEFAULT_BOOLEAN_VALUE = false;
export const DEFAULT_NUMBER_VALUE = 0;
export const DEFAULT_STRING_VALUE = '';
// Supports letters, numbers, dashes, and camel case.
// Minimum 2 characters. Must start and end with a letter.
export const COMMAND_FORMAT = /^[a-z][-a-z0-9:]*[a-z]$/iu;
// Double dash followed by a long name.
// Supports letters, numbers, dashes, and camel case.
// Minimum 2 characters. Must start with a letter.
export const LONG_OPTION_FORMAT = /^--[a-z][-a-z0-9]+$/iu;
// Single dash followed by a short name.
import { createInternalDebugger } from '@boost/internal';
export const debug = createInternalDebugger('translate');
import { createInternalDebugger } from '@boost/internal';
export const debug = createInternalDebugger('debug');