We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd837d6 commit 3450b4bCopy full SHA for 3450b4b
packages/members-csv/lib/parse.js
@@ -3,6 +3,13 @@ const pump = require('pump');
3
const papaparse = require('papaparse');
4
const fs = require('fs-extra');
5
6
+/**
7
+ *
8
+ * @param {string} path - The path to the CSV to prepare
9
+ * @param {Object.<string, string>} mapping - An object whose keys are headers in the input CSV and values are the header to replace it with
10
+ * @param {Array<string>} [defaultLabels] - A list of labels to apply to every parsed member row
11
+ * @returns
12
+ */
13
module.exports = (path, mapping, defaultLabels = []) => {
14
const inputMapping = Object.assign({}, mapping, {
15
subscribed_to_emails: 'subscribed'
0 commit comments