Code Monkey home page Code Monkey logo

luaprettyprint's Introduction

Unmaintained project!

I might take another stab at this, but at the moment I no longer plan on developing this.

luaprettyprint

What's this ?

luaprettyprint is a simple and small library to pretty print tables in lua.

It handles "recursive" tables and all that kind of shenenigans.

It also displays colors !

Alright, but what does it look like ?

See by yourself:

Screenshot

That looks great ! How do I use it ?

Simply download prettyprint.lua and put it in the same folder as your script (er somewhere in your package.path).

Then add something like local prettyprint = require("prettyprint") at the beginning of your file, then just call prettyprint.pprint(yourtable) and there you go !

To add colors just add as a second argument true

Tadaaa you're done !

Cool ! Can I use it in my project ?

This is distributed under MIT Licence, which means you can do pretty much anything with my code as long as you write somewhere that I did this original code and you copy that license (read LICENSE for more info)

luaprettyprint's People

Contributors

cafehaine avatar

Stargazers

 avatar  avatar

Watchers

 avatar  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.