Skip to content

mahdifrmz/node-clone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node-Clone

This is a Node.js clone Javascript runtime, built one top of Duktape JS Engine and a simple implementation of an event loop. Node-Clone supports a handful of non-blocking IO functions which can yield the result using callbacks. This is by no means a production ready environment and its only purpose is a minimal demonstration of how Node.js runtime works internally.

Build

to build Node-Clone you need to have CMake Installed:

mkdir target
cd target
cmake ..
make

the output is the target/nodec executable.

Running

Node-Clone does not provide a REPL interface like Node.js. In order to use Node-Clone you need to provide a .js file as input:

./nodec index.js

Samples

There are sample scripts provided which can be run using Node-Clone.

About

a simple clone of node.js runtime

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages