Code Monkey home page Code Monkey logo

baby-parse-meteor's People

Watchers

 avatar

baby-parse-meteor's Issues

underscore

I think underscore is missing as a package dependency.

DOCs: Example on using baby parse with a local file

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'

Link gives no results

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 } }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.