Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read csv from URL #435

Open
Valentine-Mario opened this issue Dec 23, 2021 · 1 comment
Open

Read csv from URL #435

Valentine-Mario opened this issue Dec 23, 2021 · 1 comment

Comments

@Valentine-Mario
Copy link

Reading CSV files from URL seems like a feature that should be supported. Can't seem to find it

@jfoclpf
Copy link

jfoclpf commented Jan 9, 2022

It seems is supported, read the docs

const request=require('request')
const csv=require('csvtojson')
 
csv()
.fromStream(request.get('http://mywebsite.com/mycsvfile.csv'))
.subscribe((json)=>{
    return new Promise((resolve,reject)=>{
        // long operation for each json e.g. transform / write into database.
    })
},onError,onComplete);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants