Last 12 weeks ยท 0 commits
4 of 6 standards met
Repository: sindresorhus/clear-cli. Description: Clear the terminal cross-platform Stars: 45, Forks: 3. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Latest release: v2.0.0 (4y ago). Open PRs: 0, open issues: 0. Last activity: 4y ago. Community health: 71%. Top contributors: sindresorhus, Richienb.
using Hyper 2.0.0 !image @sindresorhus
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: