therebelrobot / countryjs

[unmaintained] A module for returning data about countries, ISO info and states/provinces within them. Browserify-compatible
http://country.js.org
120 stars 88 forks source link

Can't seem to get this to work with Browserify command line #64

Open notacouch opened 6 years ago

notacouch commented 6 years ago

I'm using browserify via command line and should be able to just run browserify -t bulkify in.js > bundle.js, but I always get the following error in browser:

TypeError: fs.readdirSync is not a function

It seems to be related to the changes here: https://github.com/therebelrobot/countryjs/issues/57

so I rolled back to a previous commit, and I still get the above error.

Please advise.