Skip to content

Foundation42/nodepp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nodepp

Nodepp is an innovative open source project that aims to make it easier to create applications in C++. This project introduces a high-level abstraction layer that allows developers to write C++ code in a way that is similar to how they would write code in NodeJS. With Nodepp, developers can leverage the advantages of the C++ language while benefiting from the ease of use and flexibility that NodeJS offers. This unique combination of features makes Nodepp a powerful tool for creating high-performance and scalable applications. Additionally, since it is an open source project, anyone can contribute and improve Nodepp to fit their specific needs.

  • Nodepp: compatible with Arduino here
  • Nodepp: compatible with PC here

Dependencies

  • Openssl sudo apt install libssl-dev
  • Zlib sudo apt install zlib1g-dev

Key Features

  • Allows writing C++ code as if writing in NodeJS
  • Adds a high-level abstraction layer to simplify C++ application development
  • Includes an event loop that can handle multiple events and tasks on a single thread of execution
  • Supports coroutines, which allows running multiple tasks concurrently on a single thread
  • Includes support for TCP, TLS, UDP, HTTP, and HTTPS, making it easy to create networked applications
  • Includes a regular expression engine for processing and manipulating text strings
  • Compatible with several platforms, including Windows, macOS, Linux, ESP32, and ESP8266
  • Open source project, meaning anyone can contribute and improve it
  • Has extensive documentation and an active community of developers willing to help

Compile

  • gcc -o main main.cpp -lstdc++ -I ./include ; ./main
  • g++ -o main main.cpp -I ./include ; ./main

Usage

To use Nodepp, simply include the nodepp.h header file in your project and start writing C++ code as if you were writing in NodeJS. Here's a simple example:

#include <nodepp/nodepp.h>

using namespace nodepp;

void $Ready() {
    console::log("Hello World!");
}

Examples - here

Contribution

If you want to contribute to Nodepp, you are welcome to do so! You can contribute in several ways:

  • Improving the documentation
  • Reporting bugs and issues
  • Adding new features or improving existing ones
  • Writing tests and ensuring compatibility with different platforms
  • Before submitting a pull request, make sure to read the contribution guidelines.

License

Nodepp is distributed under the MIT License. See the LICENSE file for more details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 97.4%
  • C 2.6%