Coder Social home page Coder Social logo

kwooshung / consolebadge Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 205 KB

Output beautiful badges in the console, supporting right angles, rounded corners, color and other settings

License: MIT License

JavaScript 53.23% TypeScript 46.57% Shell 0.20%
badge console consoles print console-badge

consolebadge's Introduction

@kwooshung/console-badge

GitHub Release Date - Published_At GitHub last commit GitHub code size in bytes GitHub top language GitHub pull requests GitHub issues NPM Version Npm.js Downloads/Week Github CI/CD codecov Maintainability GitHub License Gitee Repo Github Stars

δΈ­ζ–‡ | English

Why Develop It?

In open source programs, there are various badges, just like the badges shown above; I hope that such badges can also be displayed in the console to facilitate the display of current program information, such as version number, build time, build status, etc. and other information.

Why Use It?

  • Supports bilingual annotations in both Chinese and English;
  • Low learning cost, chain calling, simple and flexible use;
  • Implemented with modern features of ES6;
  • Written in TypeScript for type safety;
  • Pure script, can depend on any framework, any platform, any environment;
  • Supports on-demand import, esm modularization, natively supports tree-shaking, no worries about the size after packaging;
  • Of course, this project also provides a commonjs standard cjs version;
  • Test coverage of 100%.

Install

npm

npm install @kwooshung/console-badge

yarn

yarn add @kwooshung/console-badge

pnpm

pnpm add @kwooshung/console-badge

Usage

Basic Usage:

import ConsoleBadge from '@kwooshung/console-badge';

const cb = new ConsoleBadge('version', 'v1.2.3');
cb.[various configuration functions, supporting chain calls].print();

Demo Screenshot

Below is a demonstration of some of the functions;

ConsoleBadge Demo Screenshot

Why are the functions not listed here?

  • Initially, I thought of listing them, but considering the simplicity of use and straightforward code, it's better to view the source code directly Click here to view the source code.
  • The function names are quite intuitive, so there's no need to worry about understanding them.
  • If you're using TypeScript, you'll get prompts, and the comments are in both Chinese and English, making it very simple to use. There's nothing to worry about.

consolebadge's People

Contributors

kwooshung avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.