Join Slack
Powered by
Is it possible to use npmjs packages in Kotlin/JS?...
# javascript
t
Tarun Chawla
02/10/2021, 3:30 PM
Is it possible to use npmjs packages in Kotlin/JS? If yes can you please share good documentation on how to call js apis from Kotlin code?
h
Hampus Londögård
02/10/2021, 3:37 PM
Yes, if you use gradle. In JS dependencies add
implementation(npm(<INSERT_NAME>))
See
https://kotlinlang.org/docs/reference/js-project-setup.html#npm-dependencies
👍 1
t
Tarun Chawla
02/10/2021, 4:14 PM
thank you
2
Views
Open in Slack
Previous
Next