Permalink
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (17 sloc) 540 Bytes

Streamline loader example

The loader module must be a vanilla Javascript or CoffeeScript module (.js or .coffee extension), not a streamline.js source because it gets loaded before the extensions have been registered.

The loader module must register the streamline file extensions:

require('streamline').register({});

Once the extensions have been registered, the loader can require a streamline module

require('./hello');

Running it

node streamline/examples/runner/runner