¡@

Home 

javascript Programming Glossary: commonjs

supporting both CommonJS and AMD

http://stackoverflow.com/questions/13673346/supporting-both-commonjs-and-amd

both CommonJS and AMD Is there a way to create a javascript micro library.. following module formats Asynchronous Module Definition CommonJS exposing the library's exports as a global namespace object..

Fatal error: Unable to find local grunt [closed]

http://stackoverflow.com/questions/13925916/fatal-error-unable-to-find-local-grunt

jquery A jQuery plugin node A Node module commonjs A CommonJS module gruntplugin A Grunt plugin gruntfile A Gruntfile grunt.js..

pros and cons of serverside javascript implementation?

http://stackoverflow.com/questions/1476967/pros-and-cons-of-serverside-javascript-implementation

for serverside JS. As mentioned in Brandon's answer the CommonJS group is attempting to form a serverside JS standard and Myna.. to form a serverside JS standard and Myna has experimental CommonJS support via Narwhal how this works well in terms of performance..

JavaScript unit test tools for TDD

http://stackoverflow.com/questions/300855/javascript-unit-test-tools-for-tdd

standalone. QUnit's assertion methods follow the CommonJS Unit Testing specification which was to some degree influenced..

How can I share code between Node.js and the browser?

http://stackoverflow.com/questions/3225251/how-can-i-share-code-between-node-js-and-the-browser

to say the least. So I am still getting my head around the CommonJS require function. If I am creating my packages by using the.. messages and other mirrored tasks. However the Node.js CommonJS packaging systems seems to preclude me from creating JS files..

Client-side javascript to support promises, futures, etc

http://stackoverflow.com/questions/3249646/client-side-javascript-to-support-promises-futures-etc

to be on server side javascript SSJS with Promises in CommonJS . Ideally for me I would find a solution that works well with.. but I'm open to any solution. Is it possible to use the CommonJS solution client side This Sitepen article has some great information.. Sitepen article has some great information on promises in CommonJS but it is focused on SSJS. What other libraries are available..

CoffeeScript & Global Variables

http://stackoverflow.com/questions/4214731/coffeescript-global-variables

them as properties on window or on the exports object in CommonJS. The existential operator covered below gives you a reliable.. to figure out where to add them if you're targeting both CommonJS and the browser root exports this How do I define Global Variables.. it states in your quote from the docs ...targeting both CommonJS and the browser root exports this This is obviously coffee script..

How to check whether a script is running under node.js?

http://stackoverflow.com/questions/4224606/how-to-check-whether-a-script-is-running-under-node-js

Object var isNode false Export the Underscore object for CommonJS with backwards compatibility for the old `require ` API. If.. compatibility for the old `require ` API. If we're not in CommonJS add `_` to the global object. if typeof module 'undefined' module.exports..

RequireJS: How to define modules that contain a single “class”?

http://stackoverflow.com/questions/4869530/requirejs-how-to-define-modules-that-contain-a-single-class

A. I am planning to use RequireJS as an implementation of CommonJS Modules AsynchronousDefinition to solve this problem for me.. make it harder to translate the module back to a regular CommonJS module. I think that is OK but useful info to know. So you can..

How to handle circular dependencies with RequireJS/AMD?

http://stackoverflow.com/questions/4881059/how-to-handle-circular-dependencies-with-requirejs-amd

goes away. I find exports to be ugly but it is how regular CommonJS modules solve the problem define Employee exports Company function..

Why did Underscore.js remove support for AMD?

http://stackoverflow.com/questions/9009510/why-did-underscore-js-remove-support-for-amd

Module Definition is said to be far superior to CommonJS modules. Update As of December 2013 this has been supported..

supporting both CommonJS and AMD

http://stackoverflow.com/questions/13673346/supporting-both-commonjs-and-amd

as a global namespace object no loader javascript amd commonjs share improve this question Here is a list of various cross..

Fatal error: Unable to find local grunt [closed]

http://stackoverflow.com/questions/13925916/fatal-error-unable-to-find-local-grunt

grunt init which give you some options such as jQuery node commonjs select which ever you want than proceed.This will really works... options jquery A jQuery plugin node A Node module commonjs A CommonJS module gruntplugin A Grunt plugin gruntfile A Gruntfile..

Asynchronous JavaScript - Callbacks vs Deferred/Promise [duplicate]

http://stackoverflow.com/questions/14127703/asynchronous-javascript-callbacks-vs-deferred-promise

fiddle I'm using for testing. javascript jquery deferred commonjs share improve this question Promises also rely on callbacks..

What is the benefit of a 'promise' abstraction in CommonJS?

http://stackoverflow.com/questions/2160100/what-is-the-benefit-of-a-promise-abstraction-in-commonjs

price print The price is price javascript abstraction commonjs promise share improve this question While it is true that..

Client-side javascript to support promises, futures, etc

http://stackoverflow.com/questions/3249646/client-side-javascript-to-support-promises-futures-etc

Is one better than the others javascript jquery future commonjs promise share improve this question I'm the developer of..

How to check whether a script is running under node.js?

http://stackoverflow.com/questions/4224606/how-to-check-whether-a-script-is-running-under-node-js

I didn't know the node.js modules feature is based on commonjs . For the specific example I gave a more accurate question would've.. How can a script tell whether it has been required as a commonjs module javascript node.js commonjs share improve this question.. has been required as a commonjs module javascript node.js commonjs share improve this question This is how the Underscore.js..

RequireJS: How to define modules that contain a single “class”?

http://stackoverflow.com/questions/4869530/requirejs-how-to-define-modules-that-contain-a-single-class

var john new employee.Employee John Smith javascript commonjs requirejs share improve this question The AMD proposal allows..

How to handle circular dependencies with RequireJS/AMD?

http://stackoverflow.com/questions/4881059/how-to-handle-circular-dependencies-with-requirejs-amd

AMD for something it was not designed for javascript commonjs requirejs share improve this question This is indeed a restriction..

Load “Vanilla” Javascript Libraries into Node.js

http://stackoverflow.com/questions/5171213/load-vanilla-javascript-libraries-into-node-js

interface or do it your damn self. javascript node.js commonjs share improve this question Here's what I think is the 'rightest'..

module.exports vs exports in nodeJS

http://stackoverflow.com/questions/7137397/module-exports-vs-exports-in-nodejs

and export and why both are used here. javascript node.js commonjs share improve this question Setting module.exports allows..

Defining an implementation independent version of the global object in JavaScript

http://stackoverflow.com/questions/8280137/defining-an-implementation-independent-version-of-the-global-object-in-javascrip

this.global this javascript jquery node.js global commonjs share improve this question this is in no way relevant to..