do we have npm package follow module system with import/export ?
Closed this issue · 6 comments
anvotrinh commented
I'm going to use this with React, I think it should be available in npm and included all it's dependencies in package.json
stewartlord commented
Hmm.. It is in npm and here aren't any external dependencies. What problem are you seeing?
anvotrinh commented
You need to export module from identicon.js so i can import them from my js file.
If you use window.Identicon, it can only work on browser. I want it work for both server and browser
stewartlord commented
Got it, I will take look.
stewartlord commented
Hi @votinhaooo, I just committed a change that should allow Identicon.js to work in the browser or via NPM require(). I hope it works for you. Let me know if we can close this issue.
mitar commented
Hm, when using it as a NPM module I am getting "PNGlib is not defined" error?
stewartlord commented
Oh no! I see your PR, thanks :)