Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 249 Bytes

File metadata and controls

9 lines (6 loc) · 249 Bytes

Node.js example

This example demonstrates how to use JavaScriptKit with Node.js. It shows how to export Swift functions to JavaScript and run them in a Node.js environment.

$ swift package --swift-sdk $SWIFT_SDK_ID js
$ node main.mjs