
Security News
Feross on the 10 Minutes or Less Podcast: Nobody Reads the Code
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.
fake-console
Advanced tools
Simulate realistic console outputs for npm install, builds, CI jobs, error stacks, server starts, and more. Perfect for demos, tutorials, testing, and UI mockups.
Simulate realistic developer console outputs like npm install, server startup, build logs, CI jobs, test runners, and more — all with a simple JavaScript function.
Ideal for:
npm install fake-console
const {
simulateNpmInstall,
simulateYarnInstall,
simulateExpressServer,
simulateGitPush,
simulateDockerBuild,
simulateErrorStack,
simulateReactBuild,
simulateAngularBuild,
simulateNestStart,
simulateSpringBootRun,
simulateDjangoRun,
simulateViteBuild,
simulateWebpackBuild,
simulateVueServe,
simulateNextJsDev,
simulatePythonFlaskRun,
simulateWarning,
simulateScriptExecution,
simulateTestRunner,
simulateCIJob
} = require('fake-console');
(async () => {
await simulateNpmInstall('express');
await simulateExpressServer(3000);
simulateErrorStack();
})();
| Function | Description |
|---|---|
simulateNpmInstall(pkg, duration) | Simulates npm install logs |
simulateYarnInstall(pkg, duration) | Simulates yarn add output |
simulateExpressServer(port) | Logs Express server start-up |
simulateGitPush() | Simulates git push origin main |
simulateDockerBuild() | Simulates docker build and run logs |
simulateErrorStack() | Prints a fake runtime error with stack trace |
simulateReactBuild() | Simulates npm start of Create React App |
simulateAngularBuild() | Angular CLI build logs |
simulateNestStart() | NestJS app boot with dependency tree |
simulateSpringBootRun() | Spring Boot Java app logs |
simulateDjangoRun() | Django dev server log |
simulateViteBuild() | Vite dev server startup logs |
simulateWebpackBuild() | Webpack build output with chunks/assets |
simulateVueServe() | Vue CLI dev server logs |
simulateNextJsDev() | Next.js dev command output |
simulatePythonFlaskRun() | Flask app log |
simulateWarning(msg) | Display warning messages |
simulateScriptExecution() | Generic script logs (like Bash output) |
simulateTestRunner() | Simulated Jest/Mocha test logs |
simulateCIJob() | Simulates a full CI/CD job run log |
await simulateNpmInstall(['axios', 'mongoose'], 2000);
// > npm install axios mongoose
// Installing axios...
// Installing mongoose...
// + axios mongoose added
FAQs
Simulate realistic console outputs for npm install, builds, CI jobs, error stacks, server starts, and more. Perfect for demos, tutorials, testing, and UI mockups.
We found that fake-console demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.