GitShow/sindresorhus/clear-cli
sindresorhus

clear-cli

Clear the terminal cross-platform

by sindresorhus
Star on GitHubForknpm

JavaScript

45 stars3 forks2 contributorsQuiet · 4y agoSince 2016MIT

Meet the team

See all 2 on GitHub →
sindresorhus
sindresorhus6 contributions
Richienb
Richienb1 contribution

Recent fixes

View closed PRs →
Richienb
Move to GitHub ActionsMergedPR
Richienb · 5y ago
iTonyYo
trange characters: `[1m%`ClosedIssue

using Hyper 2.0.0 !image @sindresorhus

iTonyYo · 7y ago
Pomax
perhaps a few too many dependencies?ClosedIssue

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: 45, Forks: 3. Primary language: JavaScript. License: MIT. Open PRs: 0, open issues: 0. Last activity: 4y ago. Top contributors: sindresorhus, Richienb.

·@ofershap

Replace github.com with gitshow.dev