I have installed it in my project folder with:
npm install papaparse --save
and included in my main.js file:
const Papa = require('papaparse')
My package.json shows papaparse as a dependancy. However I get the following error:
index.html:77 Uncaught ReferenceError: Papa is not defined
at parseStuff (index.html:77)
at HTMLInputElement.onclick (index.html:14)
The function:
function parseStuff(){
Papa.parse('d:\\shite.csv', {
download: true,
complete: function(results) {
console.log("Finished", results.data);
}
});
Only just started using Electron for a quick project (and javascript isn't my native language) so forgive me if it's something obvious.