Skip to content

Interoperability Details

bjouhier edited this page Jun 17, 2012 · 17 revisions

As mentioned in the README, streamline interoperates seamlessly with standard node.js code: you can call node.js APIs from streamline code, and you can call functions written with streamline from normal node.js code.

Compatibility with underscore.js

underscore.js is a popular library and you will have a problem if you use try to use it with streamline.js because streamline will interpret the _ identifier as its special callback.

You can avoid the problem by using a different identifier for underscore.js. For example:

var __ = require("underscore");
Clone this wiki locally