All Projects → HaxeFoundation → Hxnodejs

HaxeFoundation / Hxnodejs

Licence: mit
Haxe externs for working with node.js

Programming Languages

haxe
709 projects

Projects that are alternatives of or similar to Hxnodejs

Async Ray
Provide async/await callbacks for every, find, findIndex, filter, forEach, map, reduce, reduceRight and some methods in Array.
Stars: ✭ 102 (-32.89%)
Mutual labels:  node-js
Api
🚀 GraphQL & REST APIs to explore all the rockets, launches & other SpaceX's data
Stars: ✭ 123 (-19.08%)
Mutual labels:  node-js
Xmlbuilder2
An XML builder for node.js
Stars: ✭ 143 (-5.92%)
Mutual labels:  node-js
Node Playbook
Get started fast with Node.js
Stars: ✭ 1,402 (+822.37%)
Mutual labels:  node-js
Cherow
Very fast and lightweight, standards-compliant, self-hosted javascript parser with high focus on both performance and stability
Stars: ✭ 1,539 (+912.5%)
Mutual labels:  node-js
Tabbycat
Debating tournament tabulation software for British Parliamentary and a variety of two-team parliamentary formats
Stars: ✭ 132 (-13.16%)
Mutual labels:  node-js
Debug
A tiny JavaScript debugging utility modelled after Node.js core's debugging technique. Works in Node.js and web browsers
Stars: ✭ 9,912 (+6421.05%)
Mutual labels:  node-js
Expressjs K8s
Express.js microservice with a Dockerfile, Kubernetes YAMLs and a non-root user
Stars: ✭ 148 (-2.63%)
Mutual labels:  node-js
Reactivetradercloud
Real-time FX trading showcase by Adaptive.
Stars: ✭ 1,664 (+994.74%)
Mutual labels:  node-js
Otpauth
One Time Password (HOTP/TOTP) library for Node.js, Deno and browsers.
Stars: ✭ 135 (-11.18%)
Mutual labels:  node-js
Node.js Bootstrap Starter Template
Node.js, Express, Pug, Twitter Bootstrap, Starter Template
Stars: ✭ 107 (-29.61%)
Mutual labels:  node-js
Athena Express
athena-express makes it easier to execute SQL queries on Amazon Athena by chaining together a bunch of methods in the AWS SDK. This allows you to execute SQL queries AND fetch JSON results in the same synchronous call - well suited for web applications.
Stars: ✭ 111 (-26.97%)
Mutual labels:  node-js
Manual Node
📗 📒 (PT-BR Tradução) 2020 Edition - Tradução por Christy e Vinicius Dias (https://github.com/ViniciusmDias).
Stars: ✭ 134 (-11.84%)
Mutual labels:  node-js
Node Static Page Generator
A basic static page generator for Node.js.
Stars: ✭ 102 (-32.89%)
Mutual labels:  node-js
Musicplayer
A minimal music player built on electron.
Stars: ✭ 145 (-4.61%)
Mutual labels:  node-js
Nw Ninja
A minimalistic NW.js starter project for ninjas
Stars: ✭ 101 (-33.55%)
Mutual labels:  node-js
Griffon Vm
Griffon Data Science Virtual Machine
Stars: ✭ 128 (-15.79%)
Mutual labels:  node-js
Wechat App Mall Server
小程序商城服务端
Stars: ✭ 147 (-3.29%)
Mutual labels:  node-js
Form Generator Plugin
将form-generator封装成vscode插件
Stars: ✭ 145 (-4.61%)
Mutual labels:  node-js
Norrisbot
a Slack bot that kicks asses (roundhouse-kicks to be accurate...)
Stars: ✭ 134 (-11.84%)
Mutual labels:  node-js

hxnodejs

Haxe Node.JS

Build Status Haxelib Version Haxelib Downloads Haxelib License

Extern type definitions for Node.JS. Haxe 3.4 or newer is required.

Haxe-generated API documentation is available at http://haxefoundation.github.io/hxnodejs/js/Node.html.

Original node.js documentation can be found at http://nodejs.org/api/index.html.

Features

  • Full node.js API with documentation.
  • Strict typing for everything, fully leveraging Haxe type system.
  • Optionally typed event listeners.
  • Automatic insert of "require" statements for used modules.
  • Clean output.

Quick example

  1. Install hxnodejs with haxelib install hxnodejs (released version) or haxelib git hxnodejs https://github.com/HaxeFoundation/hxnodejs (latest from GitHub).

  2. Write some code and save to Main.hx:

    class Main {
        static function main() {
            var server = js.node.Net.createServer(function(socket) {
                socket.write("Echo server\n\n");
                socket.pipe(socket);
            });
            server.listen(1337, "127.0.0.1");
        }
    }
    
  3. Compile it with with haxe -lib hxnodejs -main Main -js main.js (optionally add -D js-es=6 for cleaner JavaScript output, since node.js is ES6-compliant)

  4. Look at generated main.js:

    // Generated by Haxe 4.0.0-rc.2+63144f6db
    (function ($global) { "use strict";
    class Main {
        static main() {
            var server = js_node_Net.createServer(function(socket) {
                socket.write("Echo server\n\n");
                socket.pipe(socket);
            });
            server.listen(1337,"127.0.0.1");
        }
    }
    var js_node_Net = require("net");
    Main.main();
    })({});
    
  5. You're awesome! (See more examples)

Status

This library is considered complete, but testing and contributions are welcome. See current issues and extern guidelines.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].