webgl-heatmap icon indicating copy to clipboard operation
webgl-heatmap copied to clipboard

published to npm as webgl-heatmap

Open vicapow opened this issue 9 years ago • 7 comments

This isn't really an issue but thought it might be a good context to mention that I forked this project and converted it to ES5 and CommonJS, then published it to npm. see: https://github.com/vicapow/webgl-heatmap.

I did this mainly to require it in the heatmap-overlay I created for use with react-map-gl.

vicapow avatar Nov 09 '15 05:11 vicapow

That's awesome. I have a question though. How does npm resolve multiple packages resolving to webgl-heatmap?

pyalot avatar Nov 09 '15 09:11 pyalot

It's not possible to have multiple packages resolve to the same name.

vicapow avatar Nov 09 '15 10:11 vicapow

So by my counting there's 80 forks of that package, who gets to decide which of those 80 gets the name?

pyalot avatar Nov 09 '15 10:11 pyalot

It's first come, first serve with npm package names. Happy to give it to you, if you'd like (I think that's possible?)

vicapow avatar Nov 09 '15 10:11 vicapow

I see, nah I was just wondering. Seems kinda weird of npm to reserve unique names for stuff that may get forked a zillion times.

pyalot avatar Nov 09 '15 10:11 pyalot

I think that's why they added scoping: https://docs.npmjs.com/misc/scope

vicapow avatar Nov 09 '15 17:11 vicapow

@vicapow I get the error Error: Can't resolve 'fs' using [(https://github.com/vicapow/react-map-gl-heatmap-overlay) in file webgl-heatmap/heatmap-heights.js 4:9-22. It seems you did not reference any fs lib in your package.json but for now, the fs package seems do not exist anymore https://www.npmjs.com/package/fs

cedricdelpoux avatar Nov 02 '18 12:11 cedricdelpoux