Swift package to enable use of Node.js on iOS
import nodejs_ios
let srcPath = Bundle.main.path(forResource: "nodejs-project/main.js", ofType: "")
nodeQueue.async {
NodeRunner.startEngine(arguments: [
"node",
srcPath!,
])
}
For a real world example app, see https://github.com/kewlbear/Inssagram.
.package(url: "https://github.com/kewlbear/nodejs-ios.git", .branch("main")),
This package is based on the excellent work of https://code.janeasystems.com/nodejs-mobile.
MIT