Tintintoo / node-compiler

Compiling your Node.js application into a single executable.

Home Page:http://enclose.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Node.js Compiler

Compiling your Node.js application into a single executable.

nodec.gif

Download

Master CI RAM Test Black-box Test Download Link
Windows status status status nodec.exe
macOS status Status Status nodec-darwin-x64
Linux status Status Status nodec-linux-x64

Install

Windows

First install the prerequisites:

Then download the executable nodec.exe and run it from the VC++ or VS Command Prompt.

macOS

First install the prerequisites:

  • SquashFS Tools 4.3: brew install squashfs
  • Xcode
    • You also need to install the Command Line Tools via Xcode. You can find this under the menu Xcode -> Preferences -> Downloads
    • This step will install gcc and the related toolchain containing make
  • Python 2.6 or 2.7
  • GNU Make 3.81 or newer

Then,

curl -L https://sourceforge.net/projects/node-compiler/files/v0.9.4/nodec-darwin-x64/download > nodec
chmod +x nodec
./nodec

Linux

First install the prerequisites:

  • SquashFS Tools 4.3
  • gcc and g++ 4.8 or newer, or
  • clang and clang++ 3.4 or newer
  • Python 2.6 or 2.7
  • GNU Make 3.81 or newer

Then,

curl -L https://sourceforge.net/projects/node-compiler/files/v0.9.4/nodec-linux-x64/download > nodec
chmod +x nodec
./nodec

Usage

nodec [OPTION]... ENTRANCE
  -r, --root=DIR                   Specifies the path to the root of the application
  -o, --output=FILE                Specifies the path of the output file
  -d, --tmpdir=DIR                 Specifies the directory for temporary files
      --clean-tmpdir               Cleans all temporary files that were generated last time
      --keep-tmpdir                Keeps all temporary files that were generated last time
      --make-args=ARGS             Passes extra arguments to make
      --vcbuild-args=ARGS          Passes extra arguments to vcbuild.bat
  -n, --npm=FILE                   Specifies the path of npm
      --npm-package=NAME           Downloads and compiles the specified npm package
      --npm-package-version=VER    Downloads and compiles the specified version of the npm package
      --debug                      Enable debug mode
  -v, --version                    Prints the version of nodec and exit
      --node-version               Prints the version of the Node.js runtime and exit
  -h, --help                       Prints this help and exit

Example

git clone --depth 1 https://github.com/jashkenas/coffeescript.git
cd coffeescript
nodec bin/coffee
./a.out (or a.exe on Windows)

See Also

  • SquashFS: a compressed read-only filesystem for Linux.
  • Libsquash: portable, user-land SquashFS that can be easily linked and embedded within your application.
  • Enclose.IO: cloud-based service that compiles your application into a single executable.

About

Compiling your Node.js application into a single executable.

http://enclose.io

License:MIT License


Languages

Language:C++ 48.1%Language:C 23.5%Language:Assembly 10.5%Language:JavaScript 6.1%Language:HTML 4.0%Language:Perl 3.1%Language:Python 2.7%Language:Makefile 0.8%Language:Roff 0.3%Language:DIGITAL Command Language 0.2%Language:Shell 0.2%Language:POV-Ray SDL 0.1%Language:Batchfile 0.1%Language:M4 0.1%Language:Objective-C 0.0%Language:DTrace 0.0%Language:Pascal 0.0%Language:Prolog 0.0%Language:CSS 0.0%Language:Lua 0.0%Language:Ruby 0.0%Language:Perl 6 0.0%Language:Scheme 0.0%Language:Emacs Lisp 0.0%Language:R 0.0%Language:CMake 0.0%Language:eC 0.0%Language:XS 0.0%Language:Vim Script 0.0%Language:NSIS 0.0%Language:Protocol Buffer 0.0%Language:SAS 0.0%Language:Module Management System 0.0%