harrisonhunter / baby-parse-meteor Goto Github PK
View Code? Open in Web Editor NEWBaby Parse packaged for Meteor
License: MIT License
Baby Parse packaged for Meteor
License: MIT License
I think underscore is missing as a package dependency.
Hi there, Thanks for providing and maintaining this package. Could you please provide a 'quickstart' example with a local file? I'm trying to go by the papa parse docs and can't seem to get started.
This example, trying to read a file directly:
console.log(Baby.parseFiles('test.csv'));
Produces this error :
TypeError: Object #<Object> has no method 'parseFiles'
This example, trying to read a file directly:
console.log(Baby.parse('test.csv'));
Produces a list of 1 string with the filename:
[ [ 'test.csv' ] ]
This example, reading from node fs first:
var fs = Npm.require('fs');
var myFile = fs.readFileSync('../../../../../test.csv');
parsed = Baby.parse(myFile);
console.log(parsed.data);
Produces an error:
TypeError: Object x,x,x has no method 'substr'
for some reason it's not working with a link. Papa parse has same result btw (no data, no error).
Meteor.methods({
importCSV: function() {
Baby.parse("http://mysafeinfo.com/api/data?list=dowjonescompanies&format=csv", {
download: true,
dynamicTyping: true,
delimiter: ",",
complete: function(results) {
console.log(results);
},
});
}
})
gives result
{ data: [ [ 'http://mysafeinfo.com/api/data?list=dowjonescompanies&format=csv' ] ],
errors: [],
meta:
{ delimiter: ',',
linebreak: '\n',
aborted: false,
truncated: false } }
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.