Giter Site home page Giter Site logo

console-powers's Introduction

console-powers's People

Contributors

astoilkov avatar dashed avatar rtpharry avatar stephantabor avatar vishwajeetv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

console-powers's Issues

publish to npm?

console.message doesn't need to support node.js/iojs (#1) for it to be on npm.

I ask because it's useful to lock down on a certain version, without having to manually downloading the distributables.

Why make console.message a function?

Instead of making console.message() so that you can do console.message().text() why not have it be: console.message.text()?

Glancing at your source code, I believe it'll be a simple change at the end to:

window.console.message = new ConsoleMessage();

groupEnd() does not work correctly

This does not work:

console.message()
    // pass false if you want to create a collapsed group
    .group()
    .text('The group header text')
    .line()
    .text('The group content')
    .groupEnd()
    .print();

console.message()
    // pass false if you want to create a collapsed group
    .group()
    .text('The group header text')
    .line()
    .text('The group content')
    .groupEnd()
    .print();

screen shot 2015-06-05 at 9 12 10 am


This works:

console.message()
    // pass false if you want to create a collapsed group
    .group()
    .text('The group header text')
    .line()
    .text('The group content')
    .groupEnd()
    .print();

console.groupEnd();

console.message()
    // pass false if you want to create a collapsed group
    .group()
    .text('The group header text')
    .line()
    .text('The group content')
    .groupEnd()
    .print();

screen shot 2015-06-05 at 9 12 46 am

.group() documentation is wrong?

The readme.md group() documentation says:

Begins a group. By default the group is expanded. Provide true if you want the group to be collapsed.

The console.message.js says at line 50:

Begins a group. By default the group is expanded. Provide true if you want the group to be collapsed.

But the code says:

type: expanded === false ? 'groupCollapsed' : 'group',

So the documentation should both say Provide false if you want the group to be collapsed, right?

Everything after .object() is truncated

Everything after .object() is truncated.

Example:

console.message()
    .text('aaa').object({aaa: 'aaa'})
    .text('bbb').object({bbb: 'bbb'})
    .print()

Output after first .object() is truncated.

How to Add href or Link to console.message

Thanks a lot for this console script, but I have an issue.
Anytime I add .element('feedback') to console.message(). It still repeat the same way in the console. How do add a link to it
below is my code:

console.message()
.span({ fontWeight: 'normal'})
.text('Please don't copy-paste something or hack here!', {background: 'red', color: 'white',fontWeight: 'bold',fontSize: 15 })
.element('feedback')
.spanEnd()
.print();

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.