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

Tips on converting a closure library to nodejs for npm? #4

Closed
trusktr opened this issue Jan 6, 2015 · 3 comments
Closed

Tips on converting a closure library to nodejs for npm? #4

trusktr opened this issue Jan 6, 2015 · 3 comments

Comments

@trusktr
Copy link

trusktr commented Jan 6, 2015

Hello, would have any tips on how to convert this library, webglearth2, to nodejs to publish it on npm?

@wajatimur
Copy link
Owner

@trusktr the concept is simple, you have to create stub project (simply clone) of webglearth2 in you npm library folder then you have to bootstrap it by using require in you main npm file in this case might be index.js. Lastly you have to expose the webglearth2 object using export. If you inspect the index.js of node-phonenumber you can see significant line of code from 3-5 and 80. Please let me know if you do start the npm lib.

@trusktr
Copy link
Author

trusktr commented Jan 11, 2015

Cool, thanks for the tip. @wajatimur You've made it sound fairly easy.

@klokan ^

@wajatimur
Copy link
Owner

Welcome @trusktr

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

2 participants