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

transformHeader #597

Closed
ptorrent opened this issue Nov 14, 2018 · 5 comments
Closed

transformHeader #597

ptorrent opened this issue Nov 14, 2018 · 5 comments

Comments

@ptorrent
Copy link

ptorrent commented Nov 14, 2018

Hello,

I'm not able to call transformHeader

Papa.unparse(data,{
	delimiter: ";",
	header: true,
	transformHeader:function(h){
		console.log('HEADER',h)
		if(h == 'key') return  'test'
		return h
	}
})

"transformHeader:function" doesn't exists in the version "v4.6.2" ?

Thanks for your support and your great work !

@pokoli
Copy link
Collaborator

pokoli commented Nov 15, 2018

Hello,

The transformHedaer function is only available on 5.0.0 version which is currently unreleased and only available on master branch using non minified file.

@pokoli pokoli closed this as completed Nov 15, 2018
@rebz
Copy link

rebz commented Nov 17, 2018

@pokoli Is there an ETA on 5.0? Or is it possible to get early access? I'm a bit too excited for this. :)

@pokoli
Copy link
Collaborator

pokoli commented Nov 19, 2018

@rebz tehere is no ETA for now, I will probably create some pre-releases on npm in order to allow users test it before the final release.

For now you can use the papaparse.js file from the master branch on this repository.
If you need the minified version you can compile it with the grunt commant

Hope it helps

@dawnfantasy
Copy link

Please add a note in the docs file to save us some time!

@pokoli
Copy link
Collaborator

pokoli commented Jan 14, 2019

@dawnfantasy feel free to open a pull request improving the docs. They are on the docs folder in this repository

pokoli pushed a commit that referenced this issue Feb 1, 2019
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

4 participants