Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 540 Bytes

loader.md

File metadata and controls

25 lines (17 loc) · 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