Git Product home page Git Product logo

nectarjs's Introduction

NectarJS

Javascript's God Mode : one language to rule them all. Code everything, everywhere, for everything, in JS, TS, CS and more.

users Slack Contribute Sandbox

NPM

Join us on Slack : NectarJS' Slack

Get your free key here : NectarJS free Key

Install

You need NodeJS to install NectarJS : https://nodejs.org/en/download/.

Once done, install NectarJS : npm install -g nectarjs

Verify that NectarJS is installed with : nectar --help

Configuration

You need to enter your id and you security key. Code is encrypted in AES during compilation.

To set your id, use --setid myid

To set your key, use --setkey mykey

Basic compilation

The simplest way to use NectarJS is :

nectar file.js

The output file name will be automatically choosen regarding the target. You can specify another output with -o something.out

You can select a target for compilation with --target [THE TARGET]

The --single argument launch the compilation of the file in argument. If you need to require('') file in your current folder, you need to remove --single to switch to porject mode.

NectarJS can run directly your application after compilation if you specify --run. The program will be executed only if the --target match your system.

For more informations about compilation output, use --verbose

For help, use --help

Check syntax

You can only check syntax without compilation with argument --check.

Project management

if --single is not specified, NectarJS will create a project.json file in the project directory.

You can create a project.json file without compilation with : nectar --prepare file.js

To show a project configuration : nectar --project in the project folder or nectar --project /path/to/projet.json

To compile a project, simply call nectar project.json

Coding with your smartphone or tablet

If you want to code with your smartphone or tablet, you can download Termux, a console app that let you install nodejs for your device. Simply install NectarJS with npm install -g nectarjs, and you can start coding with your smartphone for all other platforms.

Available targets

  • wasm -> WebAssembly

  • asm-js -> ASM.js

  • wast -> WebAssembly AST

  • linux-x86-32 -> Linux x86 32 bits

  • linux-x86-64 -> Linux x86 64 bits

  • linux-arm32v7 -> Linux arm 32 v7 bits, compatible with Android and Raspberry

  • win-x86-32 -> Windows x86 32 bits

  • win-x86-64 -> Windows x86 64 bits

  • arduino-uno -> Arduino UNO

  • arduino-mega1280 -> Arduino Mega with Atmega 1280

  • arduino-mega2560 -> Arduino Mega with Atmega 2560

nectarjs's People

Contributors

adrien-thierry avatar

Watchers

⛓️INTERCHAINED ⚡Electronero Network ʕ•̫͡•ʔ-̫͡-ʕ•͓͡•ʔ-̫͡-ʕ•̫͡•ʔ-̫͡-ʔ avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.