uscensusbureau / citysdk

Convenient JavaScript utilities for working with Census APIs: Statistics, Cartographic GeoJSON, lat/lng -> FIPS, and other niceties (written in ClojureScript)
https://uscensusbureau.github.io/citysdk
MIT License
969 stars 183 forks source link

Does not work as a server-side npm module #287

Closed liorrm closed 8 years ago

liorrm commented 8 years ago

Hi there, super excited about this package, but it doesn't work as a server-side npm module (even when I follow the example provided on the npm website), as it has a hard dependency on browser-only objects like the window. Happy to contribute to a refactor - let me know if that's something you guys would be open to.

Cheers!

ghost commented 8 years ago

We are always very appreciative of contributions @liorrm!

tshrestha commented 8 years ago

@liorrm the Node version is currently under work. You can also experiment with the code in the node-api modules. These modules have been modified to work on the server side using Node.js. Although, there is a caveat - the node version in the master branch is not final and is still being improved. A more stable version will be released in v0.2.0.

liorrm commented 8 years ago

Great, thanks for the info @logantpowell & @tshrestha :) Looking forward to seeing this library mature and develop, contributing whenever and wherever possible!