nv / console.js Goto Github PK
View Code? Open in Web Editor NEWCrossbrowser Firebug console API. Improves Opera Dragonfly and IE developer tools.
Home Page: http://nv.github.com/console.js/tests/
License: MIT License
Crossbrowser Firebug console API. Improves Opera Dragonfly and IE developer tools.
Home Page: http://nv.github.com/console.js/tests/
License: MIT License
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.
The Object does not implement [[Call]]
This is Mac OS X Opera bug (DSK-274712), not console.js.
http://elv1s.ru/files/js/opera-java.html
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
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));
Console.js could be nice logging tool for server-side environment. Narwhal package would be great.
>>> 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.
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!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.