It tries to be compatible with npm module ecosystem and supports some of the Node.js API.
WARNING: project is in development and not ready for production use.
First thing is the command line tool
runtime-cli, it will add
runtime command to the shell. Type
runtime to get full usage help.
npm install runtime-cli -g
Make sure QEMU is installed, it enables running applications locally.
brew install qemu # OSXsudo apt-get install qemu # Ubuntu
Create new project and add
index.js entry point file:
mkdir projectcd projectnpm initnpm install runtimejs --saveecho "console.log('ok')" > index.js
Run project locally in QEMU:
That's it, it should start and print
ok in the console.
Optionally you can let it watch directory for changes and restart QEMU automatically:
Apache License, Version 2.0