Skip to content

Instantly share code, notes, and snippets.

@BrianJVarley
Last active August 2, 2017 14:06
Show Gist options
  • Save BrianJVarley/10ae49ffc065a1b6c9b6d3d6897e0829 to your computer and use it in GitHub Desktop.
Save BrianJVarley/10ae49ffc065a1b6c9b6d3d6897e0829 to your computer and use it in GitHub Desktop.
import { Meteor } from 'meteor/meteor';
import parse from 'csv-parse';
import fs from 'fs';
export const ParsingInterface = {
parseDataSync: function (filePath) {
const data = fs.readFile(path);
return parse(input, {columns: true});
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment