Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use module.exports to export your module for npm #3

Open
bitplanets opened this issue Dec 22, 2014 · 4 comments
Open

use module.exports to export your module for npm #3

bitplanets opened this issue Dec 22, 2014 · 4 comments

Comments

@bitplanets
Copy link

No description provided.

@zfedoran
Copy link
Owner

I'm a little confused about this. What would you be trying to accomplish with this code running in a non-browser environment?

Without access to the DOM/Canvas context, this code is not very useful. Perhaps I'm missing something :)

@Zielak
Copy link

Zielak commented Jan 26, 2015

I can only think of web-server that provides data to other clients, that are not JS-based. Mobile apps, Flash, etc, without porting the code to different language. Is that super useful?

@bitplanets
Copy link
Author

Is not to use on the server side, but is to keep the window namespace clean. If I provide a module.export or define, you should export your module to that. Is kind of standard nowadays.

@blipn
Copy link

blipn commented Sep 10, 2017

hey i've ported this code to a nodejs environment, it create a .png file :
https://github.com/blipn/pixel-sprite-generator-nodejs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants