Swiftpack.co - kewlbear/nodejs-ios as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by kewlbear.
kewlbear/nodejs-ios 0.0.1
Swift package to enable use of Node.js on iOS apps
⭐️ 18
🕓 2 years ago
.package(url: "https://github.com/kewlbear/nodejs-ios.git", from: "0.0.1")

nodejs-ios

Swift package to enable use of Node.js on iOS

Usage

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.

Swift Package Manager

.package(url: "https://github.com/kewlbear/nodejs-ios.git", .branch("main")),

Credits

This package is based on the excellent work of https://code.janeasystems.com/nodejs-mobile.

License

MIT

GitHub

link
Stars: 18
Last commit: 2 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

2 years ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics