GitHub - kabiroberai/node-swift: Create Node modules in Swift
NodeSwift
Bridge Node.js and Swift code.
What is it?
NodeSwift allows you to write Swift code that talks to Node.js libraries, and vice versa. This enables possibilities such as
Using native macOS APIs and SwiftPM in an Electron app.
Interacting with the vast array of NPM APIs from a Swift program (e.g. a macOS app, iOS app, or a Vapor server).
Speeding up your JS code by writing performance critical bits in Swift.
Example
MyModule.swift
import NodeAPI
#NodeModule(exports: [
"nums": [Double.pi.r...
Read more at github.com