FS wrapper for js pipe