albertosantini / node-rio

Integration with Rserve, a TCP/IP server for R framework
https://github.com/albertosantini/node-conpa
MIT License
176 stars 35 forks source link

Split the source code in modules #23

Closed albertosantini closed 8 years ago

albertosantini commented 9 years ago

This is a proposal how to split the source code in modules.

module.exports = require("./lib/rio");
var evaluate = require("./evaluate");
var debug = require("./debug");
var shutdown = require("./shutdown");

exports.evaluate = evaluate.evaluate;
exports.E = evaluate.evaluate;
exports.enableDebug = debug.enableDebug;
exports.enableRecordMode = debug.enableRecordMode;
exports.enablePlaybackMode = debug.enablePlaybackMode;
exports.shutdown = shutdown.shutdown;

This list is only a suggestion.

albertosantini commented 9 years ago

First split: https://github.com/albertosantini/node-rio/commit/cb841c4d5d78dd156d4969d1deb343aac71f78cf

albertosantini commented 8 years ago

At last dev-2.x branch is merged.