Skip to content

Swift package to enable use of Node.js on iOS apps with CocoaPods support

License

Notifications You must be signed in to change notification settings

milika/nodejs-ios

 
 

Repository files navigation

nodejs-ios

Swift package to enable use of Node.js on iOS and CocoaPods wrapper for it

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/milika/nodejs-ios.git", .branch("main")),

CocoPods install

pod 'NodeMobile', :git => 'https://github.com/milika/nodejs-ios.git'

Credits

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

License

MIT

About

Swift package to enable use of Node.js on iOS apps with CocoaPods support

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 85.8%
  • C++ 13.4%
  • Python 0.6%
  • Swift 0.2%
  • Objective-C 0.0%
  • Ruby 0.0%