![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Various console log level prefixes with support for color symbols and tags.
Various console log level prefixes with support for color symbols and tags.
自定义控制台各种级别日志输出的前缀,支持颜色符号,标签和时间。
npm install diy-log --save-dev
// for cjs
const logger = require('diy-log')
const { log, symbols, colors, tag } = logger
// for esm
import logger, {
log,
colors,
symbols,
tag
} from 'diy-log'
time('time ...')
info('info ...')
done('done ...')
error('error ...')
warn('warn ...')
log(symbols.info, 'info ...')
log(symbols.done, 'done ...')
log(symbols.error, 'error ...')
log(symbols.warn, 'warn ...')
log(colors.dim('dim:text;'))
log(colors.blue('color: blue;'))
log(colors.bgGreen('bgcolor: green;'))
log(colors.bold('bold:text;'))
log(colors.italic('italic:text;'))
log(colors.underline('underline:text;'))
tag('info message')
tag('success message', 'done', 'success')
tag.warn('warning message')
tag.done('done message')
tag.info(colors.blue('info message'))
tag.error('error message')
type Log = (...args: any[]) => void
type TagType = (message: string, label?: string) => void
interface Tag {
(message: string, tag: 'info' | 'error' | 'done' | 'warn' = 'info', label?: string): void
info: TagType
error: TagType
done: TagType
warn: TagType
}
log
: Log;time
: Log;info
: Log;error
: Log;done
: Log;warn
: Log;tag
: Tag;tag.info
: TagType;tag.error
: TagType;tag.done
: TagType;tag.warn
: TagType;FAQs
Various console log level prefixes with support for color symbols and tags.
We found that diy-log demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.