marook/osm-read — pull request #5 by nrenner (2014-02-10 12:08:41+00:00)
Title: extract fs dependency

part of #4

Suggesting to extract Node.js dependencies into separate files per module, in a ``nodejs`` subdirectory.

Here, functions with ``fs``-specific code are extracted into ``nodejs/fsReader.js``. Still need to pass the file descriptor ``fd`` to functions in ``pbfParser.js``, but now that could just as well be an ``ArrayBuffer``. Already adds ``nodejs/buffer.js`` because of a common dependency.