Giter VIP home page Giter VIP logo

console.js's People

Contributors

danielwhite avatar h4 avatar nv 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

console.js's Issues

Opera 12 problem

Uncaught exception: Error: WRONG_THIS_ERR
Error thrown at line 269, column 8 in logger(first_arg) in console.js:
return (_log || console._output)(result.join(console._args_separator));

Pretty print

>>> console.info(document) 
{'activeElement': , 'alinkColor': '', 'all': undefined, 'anchors': {?}, 'applets': {?}, 'attributes': null, 'baseURI': 'file://localhost/Users/nikitavasilev/Sites/github/console.js/tests/console-log.html', 'bgColor': '', 'body': , 'characterSet': 'windows-1252', 'charset': 'windows-1252', 'childNodes': {?}, 'compatMode': 'CSS1Compat', 'cookie': '', 'defaultView': {?}, 'designMode': 'off', 'dir': '', 'doctype': {?}, 'document': {?}, 'documentElement': , 'documentURI': 'file://localhost/Users/nikitavasilev/Sites/github/console.js/tests/console-log.html', 'domain': 'localhost', 'embeds': {?}, 'fgColor': '', 'firstChild': {?}, 'forms': {?}, 'frames': [object WindowCollection], 'images': {?}, 'implementation': {?}, 'lastChild': , 'lastModified': 'Thu, 24 Dec 2009 06:46:21 GMT', 'linkColor': '', 'links': {?}, 'localName': null, 'location': {?}, 'namespaceURI': null, 'nextSibling': null, 'nodeName': '#document', 'nodeType': 9, 'nodeValue': null, 'ownerDocument': null, 'parentNode': null, 'parentWindow': {?}, 'plugins': {?}, 'prefix': null, 'previousSibling': null, 'readyState': 'complete', 'referrer': '', 'scripts': {?}, 'selection': {?}, 'styleSheets': {?}, 'textContent': null, 'title': 'console.log()', 'vlinkColor': '', 'onload': null, 'onunload': null, 'open': function open() { /* source code not available */ }, 'clear': function clear() { /* source code not available */ }, 'close': function close() { /* source code not available */ }, 'getElementsByName': function getElementsByName() { /* source code not available */ }, 'elementFromPoint': function elementFromPoint() { /* source code not available */ }, 'captureEvents': function captureEvents() { /* source code not available */ }, 'releaseEvents': function releaseEvents() { /* source code not available */ }, 'getSelection': function getSelection() { /* source code not available */ }, 'write': function write() { /* source code not available */ }, 'writeln': function writeln() { /* source code not available */ }, 'moveFocusUp': function moveFocusUp() { /* source code not available */ }, 'moveFocusDown': function moveFocusDown() { /* source code not available */ }, 'moveFocusLeft': function moveFocusLeft() { /* source code not available */ }, 'moveFocusRight': function moveFocusRight() { /* source code not available */ }, 'createDocumentFragment': function createDocumentFragment() { /* source code not available */ }, 'createEvent': function createEvent() { /* source code not available */ }, 'createRange': function createRange() { /* source code not available */ }, 'createProcessingInstruction': function createProcessingInstruction() { /* source code not available */ }, 'importNode': function importNode() { /* source code not available */ }, 'adoptNode': function adoptNode() { /* source code not available */ }, 'createNSResolver': function createNSResolver() { /* source code not available */ }, 'createElement': function createElement() { /* source code not available */ }, 'createElementNS': function createElementNS() { /* source code not available */ }, 'createAttribute': function createAttribute() { /* source code not available */ }, 'createAttributeNS': function createAttributeNS() { /* source code not available */ }, 'createTextNode': function createTextNode() { /* source code not available */ }, 'createComment': function createComment() { /* source code not available */ }, 'createCDATASection': function createCDATASection() { /* source code not available */ }, 'getElementById': function getElementById() { /* source code not available */ }, 'getElementsByClassName': function getElementsByClassName() { /* source code not available */ }, 'createNodeIterator': function createNodeIterator() { /* source code not available */ }, 'createTreeWalker': function createTreeWalker() { /* source code not available */ }, 'getElementsByTagName': function getElementsByTagName() { /* source code not available */ }, 'getElementsByTagNameNS': function getElementsByTagNameNS() { /* source code not available */ }, 'execCommand': function execCommand() { /* source code not available */ }, 'queryCommandEnabled': function queryCommandEnabled() { /* source code not available */ }, 'queryCommandState': function queryCommandState() { /* source code not available */ }, 'queryCommandSupported': function queryCommandSupported() { /* source code not available */ }, 'queryCommandValue': function queryCommandValue() { /* source code not available */ }, 'createExpression': function createExpression() { /* source code not available */ }, 'evaluate': function evaluate() { /* source code not available */ }, 'querySelector': function querySelector() { /* source code not available */ }, 'querySelectorAll': function querySelectorAll() { /* source code not available */ }, 'ELEMENT_NODE': 1, 'ATTRIBUTE_NODE': 2, 'TEXT_NODE': 3, 'CDATA_SECTION_NODE': 4, 'ENTITY_REFERENCE_NODE': 5, 'ENTITY_NODE': 6, 'PROCESSING_INSTRUCTION_NODE': 7, 'COMMENT_NODE': 8, 'DOCUMENT_NODE': 9, 'DOCUMENT_TYPE_NODE': 10, 'DOCUMENT_FRAGMENT_NODE': 11, 'NOTATION_NODE': 12, 'DOCUMENT_POSITION_DISCONNECTED': 1, 'DOCUMENT_POSITION_PRECEDING': 2, 'DOCUMENT_POSITION_FOLLOWING': 4, 'DOCUMENT_POSITION_CONTAINS': 8, 'DOCUMENT_POSITION_CONTAINED_BY': 16, 'DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC': 32, 'dispatchEvent': function dispatchEvent() { /* source code not available */ }, 'insertBefore': function insertBefore() { /* source code not available */ }, 'replaceChild': function replaceChild() { /* source code not available */ }, 'removeChild': function removeChild() { /* source code not available */ }, 'appendChild': function appendChild() { /* source code not available */ }, 'hasChildNodes': function hasChildNodes() { /* source code not available */ }, 'cloneNode': function cloneNode() { /* source code not available */ }, 'normalize': function normalize() { /* source code not available */ }, 'isSupported': function isSupported() { /* source code not available */ }, 'hasAttributes': function hasAttributes() { /* source code not available */ }, 'isSameNode': function isSameNode() { /* source code not available */ }, 'getFeature': function getFeature() { /* source code not available */ }, 'compareDocumentPosition': function compareDocumentPosition() { /* source code not available */ }, 'addEventListener': function addEventListener() { /* source code not available */ }, 'removeEventListener': function removeEventListener() { /* source code not available */ }, 'attachEvent': function attachEvent() { /* source code not available */ }, 'detachEvent': function detachEvent() { /* source code not available */ }, 'lookupPrefix': function lookupPrefix() { /* source code not available */ }, 'isDefaultNamespace': function isDefaultNamespace() { /* source code not available */ }, 'lookupNamespaceURI': function lookupNamespaceURI() { /* source code not available */ }, 'selectNodes': function selectNodes() { /* source code not available */ }, 'selectSingleNode': function selectSingleNode() { /* source code not available */ }, 'addEventSource': function addEventSource() { /* source code not available */ }, 'removeEventSource': function removeEventSource() { /* source code not available */ } }

This is not readable. Pretty print needed.

String interpolation

console.log("The %s jumped over %d tall buildings", animal, count);

%s String
%d, %i Integer (numeric formatting is not yet supported)
%f Floating point number (numeric formatting is not yet supported)
%o Object hyperlink

[enhancement] Add missing bower.json.

Hey, maintainer(s) of NV/console.js!

We at VersionEye are working hard to keep up the quality of the bower's registry.

We just finished our initial analysis of the quality of the Bower.io registry:

7530 - registered packages, 224 of them doesnt exists anymore;

We analysed 7306 existing packages and 1070 of them don't have bower.json on the master branch ( that's where a Bower client pulls a data ).

Sadly, your library NV/console.js is one of them.

Can you spare 15 minutes to help us to make Bower better?

Just add a new file bower.json and change attributes.

{
  "name": "NV/console.js",
  "version": "1.0.0",
  "main": "path/to/main.css",
  "description": "please add it",
  "license": "Eclipse",
  "ignore": [
    ".jshintrc",
    "**/*.txt"
  ],
  "dependencies": {
    "<dependency_name>": "<semantic_version>",
    "<dependency_name>": "<Local_folder>",
    "<dependency_name>": "<package>"
  },
  "devDependencies": {
    "<test-framework-name>": "<version>"
  }
}

Read more about bower.json on the official spefication and nodejs semver library has great examples of proper versioning.

NB! Please validate your bower.json with jsonlint before commiting your updates.

Thank you!

Timo,
twitter: @versioneye
email: [email protected]
VersionEye - no more legacy software!

console.find(where, what)

Or console.grep, or console.filter. I don't know yet.

Objects:

obj = {
  a: 1,
  b: {c: [1, "buz"]}
}

>>> console.find(obj, 1)
-> [obj.a, obj.b.c]
>>> console.find(obj, [1, "buz"])
-> obj.b.c

DOM:

<body>
  <p>Fuuuuuuuu!</p>
  <p>Bar.</p>
</body>

>>> console.find(document.body, function(e){
  return e.textContent.indexOf('Fuu') === 0
}
->  <p>Fuuuuuuuu!</p>

Inspired by method_finder.

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.