juancarlospaco / nodejs

Alternative StdLib for Nim for NodeJS/JavaScript targets, hijacks NodeJS StdLib for Nim
https://juancarlospaco.github.io/nodejs
MIT License
207 stars 52 forks source link

Access to NPM modules? #2

Closed nixfreak closed 3 years ago

nixfreak commented 3 years ago

Just curious if nim nodjs will allow to import js modules say from NPM?

juancarlospaco commented 3 years ago

Anything on particular?, I dont know whats the most useful libraries for Node?.

It has a "sugar" module that has utilities, but is also kinda kitchen sink, so we need to sort it.

This is not part of the original idea, to use node modules you have to wrap it, we can not wrap everything on npm.

nixfreak commented 3 years ago

Yes I want to use nim for the stellar-SDK https://github.com/stellar/js-stellar-sdk

To use the api on the stellar network.

juancarlospaco commented 3 years ago

I think you will have to wrap it, is what TypeScript does (stub they call it but is a kind of wrapper).

Is out of scope for this project, and we do not have any Sponsors for such developments...