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

Support for ES6 style imports #194

Closed
micros123 opened this issue Aug 25, 2017 · 3 comments
Closed

Support for ES6 style imports #194

micros123 opened this issue Aug 25, 2017 · 3 comments

Comments

@micros123
Copy link

Please add support and documentation for using this library in ES6 or React applications, with an import statement instead of require().

@Keyang
Copy link
Owner

Keyang commented Sep 30, 2017

import * as csv from "csvtojson"
csv().fromFile()

What is preventing you from doing this?

~Keyang

@Keyang
Copy link
Owner

Keyang commented Jul 12, 2018

supported since 2.0.0
Close due to no activity

@Keyang Keyang closed this as completed Jul 12, 2018
@abettermap
Copy link

This worked for me:

import csv from "csvtojson"

Related: #418 (comment)

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

3 participants