![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.
caterpillar-human
Advanced tools
Turn your [Caterpillar](https://github.com/bevry/caterpillar) logger stream into a beautiful readable format with colors and optional debug information
Turn your Caterpillar logger stream into a beautiful readable format with colors and optional debug information
require('caterpillar-human')
npm install --save caterpillar-human
require('caterpillar-human')
ender add caterpillar-human
// Import
var logger = require('caterpillar').createLogger();
var human = require('caterpillar-human').createHuman();
// Pipe logger output to our human interface, then our human interface output to stdout
logger.pipe(human).pipe(process.stdout);
// Log
logger.log('warn', 'this is the first log entry');
// warn: this is the first log entry
logger.log('info', 'this is the second log entry');
// info: this is the second log entry
// Wait
setTimeout(function(){
// Set debug mode
logger.setConfig({level:7});
// Log
logger.log('warn', 'this is the first log entry');
// warn: this is the first log entry
// → [2013-04-25 20:37:22.692] [/Users/balupton/Projects/caterpillar-human/example.js:20] [null._onTimeout]
logger.log('info', 'this is the second log entry');
// info: this is the second log entry
// → [2013-04-25 20:37:22.693] [/Users/balupton/Projects/caterpillar-human/example.js:22] [null._onTimeout]
},0);
new (require('caterpillar-human').Human)(config)
Methods
constructor(config?)
create our new human instance with the config, config is optionalpipe(child)
pipe our stream to the child, also sync our config to itsetConfig(config)
set the configuration and emit the config
eventgetConfig()
get the configurationformat(entry)
format the caterpillar logger entryConfiguration
level
number, defaults to null
, when set to 7
(debug level) we will debug information with the log entries
color
boolean, defaults to true
, set to false
to turn off colors
colors
objects of the level to color mapping, defaults to:
{
0: 'red',
1: 'red',
2: 'red',
3: 'red',
4: 'yellow',
5: 'yellow',
6: 'green',
7: 'green'
}
Events
config(config)
emitted once our configuration has updatedDiscover the change history by heading on over to the History.md
file.
These amazing people are maintaining this project:
No sponsors yet! Will you be the first?
These amazing people have contributed code to this project:
Licensed under the incredibly permissive MIT license
Copyright © 2012+ Bevry Pty Ltd us@bevry.me (http://bevry.me)
Copyright © 2011 Benjamin Lupton b@lupton.cc (http://balupton.com)
FAQs
Turn your [Caterpillar](https://github.com/bevry/caterpillar) logger stream into a beautiful readable format with colors and optional debug information
We found that caterpillar-human demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.