Closed trusktr closed 9 years ago
@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.
Cool, thanks for the tip. @wajatimur You've made it sound fairly easy.
@klokan ^
Welcome @trusktr
Hello, would have any tips on how to convert this library, webglearth2, to nodejs to publish it on npm?