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:
parent
0b54b187bd
commit
320d1f7653
3 changed files with 4 additions and 2 deletions
ghost/members-csv
|
@ -0,0 +1,2 @@
|
|||
module.exports.parse = require('./parse');
|
||||
module.exports.unparse = require('./unparse');
|
|
@ -88,5 +88,5 @@ const parse = async (filePath) => {
|
|||
});
|
||||
};
|
||||
|
||||
module.exports.parse = parse;
|
||||
module.exports = parse;
|
||||
module.exports.readCSV = readCSV;
|
|
@ -30,4 +30,4 @@ const unparse = (members) => {
|
|||
return papaparse.unparse(mappedMembers);
|
||||
};
|
||||
|
||||
module.exports.unparse = unparse;
|
||||
module.exports = unparse;
|
Loading…
Add table
Reference in a new issue