form-serialize
form-serialize copied to clipboard
make npm compatible (without component)
It'd be great if I could just npm install this without having to install component.
Ah yeah, that'll be tricky since all the other deps here are also built with component.
Ya, hmm, it's also breaking my browserify build due to the overloaded use of require even when I do install component.
There is the automated npmcomponent project:
https://github.com/npmcomponent/yields-submittable https://github.com/npmcomponent/yields-reduce https://github.com/npmcomponent/component-value
If you just add those deps to the package.json, I think it should work, maybe?
EDIT: Except the names are slightly different. E.g. require('yields-submittable')
, so would have to test for the environment in some way.
EDIT2: Actually, I suppose you could probably just run this project through the npmcomponent translation scripts: https://github.com/airportyh/npmcomponent
The other trick here is that form-serialize
is already taken in npm. :(
@dominicbarnes Ah, that sucks. You could take the component-
approach and do component-form-serialize
although that's pretty long.