sindresorhus

clear-cli

Clear the terminal cross-platform

by sindresorhus

JavaScript

JavaScript100%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
71
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template
Pomax

Your library literally only needs to send the ANSI command to a raw filestream, but you've written it to achieve this using 540000 bytes of dependency code =) As an improvement, may I suggest removing all those dependencies and simply writing the ANSI string needed: This removes the need for over half a megabyte of dependencies just to clear the screen, and is even cross-platform (because of course windows needs a different code, why wouldn't it...) And as the only argument that clear takes is --help, it seems unnecessary to have arg parsing, but since the only response is literally the instruction to just use , no need for a big parser dependency chain either:

Pomax · 9y ago
Structured data for AI agents

Repository: sindresorhus/clear-cli. Description: Clear the terminal cross-platform Stars: 46, Forks: 3. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Latest release: v2.0.0 (5y ago). Open PRs: 0, open issues: 0. Last activity: 5y ago. Community health: 71%. Top contributors: sindresorhus, Richienb.