Giter Club home page Giter Club logo

cs's Introduction

cs - The Ultra Shorthand Console

cs provides a minimalistic wrapper around the standard console object in JavaScript, enabling you to use shorthand notation to output logs, errors, and more. Perfect for developers who want to save keystrokes and time without reinventing the wheel.

Features ๐Ÿ˜Ž

  • Ultra shorthand syntax: cs.log instead of console.log
  • Supports all common console methods: log, error, warn, info, debug, etc.
  • Easy to install and use in both Node.js and Bun environments

Installation ๐Ÿš€

Using Node.js

To install cs with npm, run the following command in your project directory:

npm install cs-shorthand

Or with Yarn:

yarn add @cs-shorthand

Using Bun

To install cs with Bun, run:

bun add cs-shorthand

Usage ๐Ÿ› 

Firstly, require cs in your JavaScript file:

// For Bun or ES Modules
import cs from 'cs-shorthand';

Now you can use cs just like you would use console:

cs.log('Hello, world!'); // Regular log
cs.error('Oops, something went wrong.'); // Error log
cs.warn('This is a warning.'); // Warning log
cs.info('FYI: Here is some info.'); // Info log
cs.debug('Debugging time.'); // Debug log

Contributing ๐Ÿ‘‹

Contributions, issues, and feature requests are welcome! Feel free to check issues page. Make sure to follow the contribution guidelines when you submit pull requests.

License ๐Ÿ“„

Distributed under the MIT License. See LICENSE for more information.


Happy coding! โœจ

cs's People

Contributors

benajaero avatar

Stargazers

 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.