Giter VIP home page Giter VIP logo

console.js's Introduction

console.js

Support me on Patreon Buy me a book PayPal Ask me anything Version Downloads Get help on Codementor

Buy Me A Coffee

JavaScript library that overrides the console object bringing its functionality in a DOM element.

consolejs

Usage & Example

Copy the library file (located in lib directory) into your app and include it into the webpage:

<script src="path/to/console.min.js"></script>

This creates the ConsoleJS global. To initialize the console do:

ConsoleJS.init({
   selector: "pre.console"
   // This is optional. Provide it if you want
   // the user to run custom stuff, otherwise the
   // ConsoleJS will run in the readonly mode.
, input: "textarea.js-code-to-run"
});

❓ Get Help

There are few ways to get help:

  1. Please post questions on Stack Overflow. You can open issues with questions, as long you add a link to your Stack Overflow question.
  2. For bug reports and feature requests, open issues. 🐛
  3. For direct and quick help, you can use Codementor. 🚀

📝 Documentation

ConsoleJS.init(options)

Adds a new element where the console will show the output.

Params

  • Object options: The DOM element (or query selector) or an object containing the following fields:

  • selector (String|HTMLElement): The DOM element or query selector.

  • input (String|HTMLElement): The DOM element or query selector. This is the element where the user inputs the code (could be a textarea, input or so).

ConsoleJS.back()

Goes back in the history.

Return

  • Object An object containing the command field.

ConsoleJS.next()

Goes to the next command in the history.

Return

  • Object An object containing the command field.

😋 How to contribute

Have an idea? Found a bug? See how to contribute.

💖 Support my projects

I open-source almost everything I can, and I try to reply to everyone needing help using these projects. Obviously, this takes time. You can integrate and use these projects in your applications for free! You can even change the source code and redistribute (even resell it).

However, if you get some profit from this or just want to encourage me to continue creating stuff, there are few ways you can do it:

  • Starring and sharing the projects you like 🚀

  • Buy me a book—I love books! I will remember you after years if you buy me one. 😁 📖

  • PayPal—You can make one-time donations via PayPal. I'll probably buy a coffee tea. 🍵

  • Support me on Patreon—Set up a recurring monthly donation and you will get interesting news about what I'm doing (things that I don't share with everyone).

  • Bitcoin—You can send me bitcoins at this address (or scanning the code below): 1P9BRsmazNQcuyTxEqveUsnf5CERdq35V6

Thanks! ❤️

📜 License

MIT © Ionică Bizău

console.js's People

Contributors

ionicabizau avatar

Stargazers

Necmettin Begiter avatar Jafar Abdurrahman Albasyir avatar  avatar Kolja avatar Michael Reddig Myers avatar Starsign68 avatar  avatar Losses Don avatar Arthur Endlein avatar Douwe den Blanken avatar Vipin Chandra avatar Kyle Mitofsky avatar Carlos Maldonado avatar BenzLeung avatar 于斯人也 avatar Hun-yong Song avatar Otto G avatar Angus H. avatar Alvaro Obyrne avatar Jason Sigal avatar timelyportfolio avatar SwhGo_oN avatar José Moreira avatar Victor Roemer avatar Rust Oceans avatar Daniel Bejan avatar Călin Sălăgean avatar Gabriel Petrovay avatar

Watchers

timelyportfolio avatar SwhGo_oN avatar James Cloos avatar Gabriel Petrovay avatar  avatar Carlos Maldonado avatar  avatar  avatar

console.js's Issues

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.