Latest 0.0.1
Homepage https://github.com/pcperini/JavascriptEngine
License MIT
Platforms ios 8.0
Authors

A Swift interface for bridging to WebKit Javascript, without wanting to kill yourself or others.

To use…

let engine = JSEngine(sourceString: "function foo(bar) {" +
    "engine.fooHandler.postMessage([bar, bar]);" +
"}")

engine.setHandlerForKey("fooHandler") { (bars: [String]) in
    println(bars.map { "why would want to do this?" })
}

engine.load {
    engine.callFunction("foo", args: ["i don't know"])
}

Latest podspec

{
    "name": "JavascriptEngine",
    "version": "0.0.1",
    "license": {
        "type": "MIT"
    },
    "homepage": "https://github.com/pcperini/JavascriptEngine",
    "authors": {
        "Patrick Perini": "[email protected]"
    },
    "summary": "A Swift interface for bridging to WebKit Javascript, without wanting to kill yourself or others.",
    "source": {
        "git": "https://github.com/pcperini/JavascriptEngine.git",
        "tag": "v0.0.1"
    },
    "source_files": "JavascriptEngine/JSEngine.swift",
    "platforms": {
        "ios": "8.0"
    }
}

Pin It on Pinterest

Share This