Skip to content

benajaero/cs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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! ✨

About

a shorthand for console (console.log)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published