UNPKG

browserify-adventure

Version:

learn browserify with this educational adventure

8 lines (6 loc) 166 B
exports.parse = function (str) { return str.split('\n').map(JSON.parse); }; exports.stringify = function (rows) { return rows.map(JSON.stringify).join('\n'); };