This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
runtimejs with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
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 # OSX sudo apt-get install qemu # Ubuntu
Create new project and add
index.js entry point file:
mkdir project cd project npm init npm install runtimejs --save echo "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:
There are two main components: operating system kernel and a
Apache License, Version 2.0