Skip to content
Singleton wrapper class to process javascript in the background via JavascriptCore.
C Objective-C
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib first commit Oct 14, 2011
JsCoreEngineWrapper.h first commit Oct 15, 2011
JsCoreEngineWrapper.m Remove unneeded files from import Oct 14, 2011
MIT-LICENSE MIT license added Jun 23, 2012
README first commit Oct 15, 2011
libiOSJavaScriptCore.a first commit Oct 15, 2011


Simple singleton iOS class that wraps a JavascriptCore library to process javascript in the background thread

1. Import all the files into your project
2. Go to build phases and add the following libraries:
   - libstdc++.dylib
   - libicucore.dylib
   - libiOSJavaScriptCore.a
3. import "JsCoreEngineWrapper.h"


1. Implement delegate methods to get the callback

- (void)JsCoreEvalResultsDidLoad:(NSString *)result {
  NSLog(@"results: %@", result);

2. Anywhere in your class, invoke javascript

[JsCoreEngineWrapper instance].evalJsString("...")];

3. Get the result in the delegate method and there you have it! Javascript in the background thread.
Something went wrong with that request. Please try again.