0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-18 02:21:47 -05:00

Exposed parsed/unparsed methods through package API

This commit is contained in:
Nazar Gargol 2020-06-19 19:23:26 +12:00
parent 0b54b187bd
commit 320d1f7653
3 changed files with 4 additions and 2 deletions

View file

@ -0,0 +1,2 @@
module.exports.parse = require('./parse');
module.exports.unparse = require('./unparse');

View file

@ -88,5 +88,5 @@ const parse = async (filePath) => {
});
};
module.exports.parse = parse;
module.exports = parse;
module.exports.readCSV = readCSV;

View file

@ -30,4 +30,4 @@ const unparse = (members) => {
return papaparse.unparse(mappedMembers);
};
module.exports.unparse = unparse;
module.exports = unparse;