tj / node-querystring

querystring parser for node and the browser - supporting nesting (used by Express, Connect, etc)
MIT License
455 stars 66 forks source link

Using in Browser #68

Closed TimNZ closed 11 years ago

TimNZ commented 11 years ago

This a complete noob question that could apply to any node js module that could work in the browser.

How are you using this in the browser? I've done a make but no obvious browser version appears.

I'm using requirejs and can wrap this in a define() but want to see if I'm missing something very obvious here, thanks for any flames :)

TimNZ commented 11 years ago

I guess this is related to component.json and Component? More things to learn...

buschtoens commented 11 years ago

node-querystring has no external dependencies, so you could use index.js right away, without any build-step whatsoever. Just wrap it in your preferred loader (like component's require.js), so it has an exports variable to use.

And if you'd like the comfort of using component(1), you can list this component as a dependency of your app.