Node.js Interpreter for iOS 7
This is an example project implementing a Node.JS interpreter as an iOS app, utilising the Nodelike framework.
Nodelike is a project to implement a roughly Node.JS-compatible interface using JavaScriptCore.framework on iOS 7 and OS X Mavericks.
(JavaScriptCore hasn't been available before iOS 7, and on OS X the project makes extensive use of the newly-updated 10.9-only Objective-C API. Previously on 10.8 there existed only a very low-level and very verbose C API.)
This is currently in a very incomplete state. It could, however, become usable over the following weeks.
console.log()
process
: .argv
, .env
, .exit()
, .nextTick()
require()
for native modulesfs
net
http
timers
util
url
events
path
stream
querystring
punycode
assert
sudo gem install cocoapods
.pod install
.Interpreter.xcworkspace
in Xcode and run!You can enter Javascript code into the TextView and execute that via a tap on the Execute
button.
After each execution, when the result of the executed script is not undefined, a popover will appear containing that result.
Have fun!