background preloader

CommonJS: JavaScript Standard Library

CommonJS: JavaScript Standard Library
JavaScript is a powerful object oriented language with some of the fastest dynamic language interpreters around. The official JavaScript specification defines APIs for some objects that are useful for building browser-based applications. However, the spec does not define a standard library that is useful for building a broader range of applications. The CommonJS API will fill that gap by defining APIs that handle many common application needs, ultimately providing a standard library as rich as those of Python, Ruby and Java. The intention is that an application developer will be able to write an application using the CommonJS APIs and then run that application across different JavaScript interpreters and host environments. With CommonJS-compliant systems, you can use JavaScript to write:

http://www.commonjs.org/

Related:  JS LibrariesJavaScript

AMD · amdjs/amdjs-api Wiki This is a copy of the "AMD" document in the repo, kept here to maintain historical links. If this document differs from the one in the repo, the repo version is the correct one. The Asynchronous Module Definition (AMD) API specifies a mechanism for defining modules such that the module and its dependencies can be asynchronously loaded.

JS RIA Archetype - The sample 'Hello World' project aims to provide a simple example of a JS RIA application which both acts as a demonstration of the javascript-maven-plugin features and provides a starting point for your own projects. The project utilizes jquery and jqueryui; jquery is used for selection and manipulation and jqueryui is used to handle a UI button. The project file structure is as follows: The project uses the AMD dependency management standard to handle JavaScript dependencies required within the project and JavaScript dependencies defined by the project. We've primarily used anonymous modules; which means that files which want to use a dependency defined elsewhere can include that dependency using the folder and file name structure.

base2 - Project Hosting on Google Code Because this library is standards-based it means that you don’t have to learn a new API. It uses standard (DOM, ECMAScript) properties and methods throughout which also means that there is no need for a lot of accompanying documentation. base2 is a lightweight library that irons out all the annoying differences in JavaScript implementations. It provides the additional functionality from JavaScript 1.6+ that only Mozilla browsers implement. It also adds some features from ES4. The library is only 6KB (gzipped). 2banner, which tells you when someone else is looking at the same web page 2banner, which tells you when someone else is looking at the same web page I was able to release a pretty nice piece of software today, courtesy of my employer, ZipRecruiter. If you have a family of web pages, and whenever you are looking at one you want to know when someone else is looking at the same page, you can use my package. The package is called 2banner, because it pops up a banner on a page whenever two people are looking at it. With permission from ZipRecruiter, I have put it on github, and you can download and use it for free. A typical use case would be a customer service organization.

Maven tools for JavaScript developers - Why use Maven for Javascript ? Maven's goals around software project management and comprehension can benefit JavaScript projects. Some of the benefits that can be readily attained are: project versioning, automated testing; continuous integration; dependency management; packaging; and release management. Javascript developers have created nice toolkits like QUnit and JsDocs to get a productive and controlled development environment. They also use libraries like jQuery for development, split code into fine grained scripts and use some assembly tools to create the released scripts.

css3-mediaqueries-js - Project Hosting on Google Code css3-mediaqueries.js by Wouter van der Graaf is a JavaScript library to make IE 5+, Firefox 1+ and Safari 2 transparently parse, test and apply CSS3 Media Queries. Firefox 3.5+, Opera 7+, Safari 3+ and Chrome already offer native support. UPDATE: Google discontinued the downloads section. Essential Node.js patterns and snippets In this post, I take a look at the different patterns that you need to know when using Node.js. These came from my own coding and from a look at the code behind Tim Caswell’s flow control libraries. I think it is necessary to know how these basic patterns are implemented even if you use a library.. 1.1 Class pattern

lorem-ipsum LoremIpsum.js LoremIpsum.js is a Node.js and Component.js module for generating passages of lorem ipsum text. Lorem ipsum text is commonly used as placeholder text in publishing, graphic design, and web development. Using the Module (Node.js) Install the LoremIpsum.js module to use the library in your server-side Node.js projects.

Firefox 18: JavaScript JIT IonMonkey speeds up performance When it comes to JavaScript performance, Google Chrome is the uncrowned king of the browser world. Google's browser is dominating all other web browsers in every benchmark, be it in Google's own Octane benchmark , Mozilla's Kraken or any of the other benchmarks that test JavaScript performance. Browsers like Firefox, Opera and even Internet Explorer have seen improvements as well in recent time, and gaps that have been wide open performance-wise are getting smaller with every browser release.

Related:  JSLibraries & Utilities