• This repository has been archived on 23/May/2022
  • Stars
    star
    238
  • Rank 169,306 (Top 4 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 8 years ago
  • Updated over 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

📦 Lock your Node.js project into an executable

lock.js

js-standard-style Build Status

Lock your Node.js project into an executable.

Installation

npm install -g lockjs

Feature

  • One binary executable.
  • Capable to handle the C++ addons.
  • Capable to handle the a lot fs methods which not use file descriptor.
  • Always run with the latest Node.js. (link the shared library at compiling time)

Quick Start

Create a locked project and get a public key by specifying the path and entry point of it:

$ lockjs lock path/to/project path/to/project/lib/index.js ./project.locked

// ....
// [lockjs] Locked file: "project.locked".
// [lockjs] Key: "yourPublicKey".

Create an executable from the locked project and its public key:

$ lockjs gen ./project.locked ./app.o yourPublicKey

Update LD_LIBRARY_PATH:

export `lockjs link`

Rock and roll:

$ ./app.o

Support Platform

  • Mac OS X
  • Linux 64 bit
  • Linux 32 bit

Environment Required

  • clang
  • Node.js > 4

Help

Usage: lockjs [options] [command]

Commands:

  lock <projectPath> <entryPoint> <dest>  lock specified node.js project and generate a public key
  gen <packedProject> <dest> <publicKey>  generate a executable from the locked and the public key
  install                                 install latest node.js header files and shared library

Options:

  -h, --help     output usage information
  -V, --version  output the version number

More Repositories

1

my-blog

📖My blog
SCSS
269
star
2

JsPatterns-ES6

🔮《JavaScript Patterns》 examples in ECMAScript6
JavaScript
240
star
3

nodejs-api-doc

📓Node.js API doc in Chinese
213
star
4

style-transfer.js

👨‍🎨️ Generate novel artistic images in Node.js
JavaScript
93
star
5

request

💨A concise HTTP request client for Go
Go
42
star
6

typescript-handbook

📘TypeScript handbook in Chinese
40
star
7

emotion-detector.js

👹 Emotion recognition in Node.js
JavaScript
32
star
8

ES6-benchmark

🙊A benchmark for some popular ES6 features in Node.js ( V8 / Chakra )
JavaScript
26
star
9

koa-decorators

🎨 Decorate koa
JavaScript
22
star
10

token-bucket

🛢️A token bucket implementation based on multi goroutines
Go
18
star
11

rss-worker

👽A configurable RSS crawler
CoffeeScript
17
star
12

redlock-rs

🔐A Rust Redlock implementation for distributed, highly-available redis locks
Rust
17
star
13

chinese-poem-generator.js

👴 Chinese poem generator in Node.js
JavaScript
15
star
14

etcd-lock

🔒Distributed locks powered by etcd v3 for Go
Go
13
star
15

vgg19-tensorflowjs-model

📝 Tensorflow.js pretrained model of VGG-19
13
star
16

VividFootball

⚽Display data of big 5 European Leagues in charts
JavaScript
9
star
17

node-etcd-lock

🔐Distributed locks powered by etcd v3 for Node.js
JavaScript
9
star
18

getGPA

😡无需网页验证码登录,上海理工大学学生绩点自动查询
Java
7
star
19

awesomeOaSystem

🏢一个之前的oa小项目的源码
JavaScript
7
star
20

n-log

📝Logging with happiness
JavaScript
7
star
21

coursera-machine-learning

💯Answers for the programming assignments in Coursera Machine Learning courses
MATLAB
6
star
22

dcgan.js

🎨 Node.js implementation of Deep Convolutional Generative Adversarial Networks
JavaScript
6
star
23

clementine

🗄️A tiny, embeddable, ACID compliant in-memory key/value database
Rust
6
star
24

nodejs-latest

📥Get the version of latest (LTS) node.js and versions of its modules
JavaScript
6
star
25

coursera-tensorflow-data-and-deployment

👨‍🏫️ Answers for the programming assignments in Coursera Tensorflow: Data and Deployment courses
Jupyter Notebook
6
star
26

resper

🔬A parser for RESP (REdis Serialization Protocol)
JavaScript
5
star
27

ts-koa

🏃 Koa implementation in TypeScript
JavaScript
5
star
28

coursera-deep-learning

👨‍🏫️Answers for the programming assignments in Coursera Deep Learning courses
Python
5
star
29

shadowsocks-kcp-chart

📊 The helm chart for shadowsocks and kcp
5
star
30

dir-requirer

😌require指定目录下的所有文件,返回与目录结构相同的对象
JavaScript
5
star
31

cresper

📡A parser for RESP (REdis Serialization Protocol) which purely using C++ addon
C++
4
star
32

resp.rs

📇A RESP (REdis Serialization Protocol) parser for Rust
Rust
4
star
33

que

👬A job queue supporting distribution mode
CoffeeScript
3
star
34

koa-tsd

🚩Type definitions for Koa 2.x
3
star
35

novel-generator

🔖 A character level RNN to generate short novel stories
Kotlin
3
star
36

billow

💧A pipeline based message processing framework
JavaScript
2
star
37

readable-buffer-stream

🚚Create readable stream which stores data in Buffer
JavaScript
2
star
38

demba-ba-net

🔍 A CNN to check whether a given image contains the ShangHai ShenHua FC football star Demba Ba
JavaScript
2
star
39

node-shared-libs

📁Shared libraries of latest node.js
2
star
40

koa-React-CRUD-demo

koa + react CRUD demo
JavaScript
2
star
41

montior-drawer

✏️a toy to draw different shapes on your cpu monitor
JavaScript
2
star
42

koa-json-server

☁️a json-server implement with koa
JavaScript
2
star
43

phpLDAPadmin-helm-chart

📈 A helm chart for phpLDAPadmin
2
star
44

routing

🚠URL routing based on trie
Go
2
star
45

cityhash

🎰 Cityhash for Node.js
C++
2
star
46

concat-streams

🎩Concat streams by piping and pass the specified events through to the end.
JavaScript
2
star
47

curator

⏰A distributed timing job executor, based on redis.
JavaScript
1
star
48

is-fresh

⚡Check whether cache can be used in this HTTP request
JavaScript
1
star
49

proxy-man

🚪基于原生http模块实现的代理
CoffeeScript
1
star
50

veins

🍁A koa router middleware for RESTful API basing on the folder path
JavaScript
1
star
51

iris-classifier

Classify iris by tensorflow.js
JavaScript
1
star
52

cidr-cli

☸️ A tiny cli tool to get useful IP address information from a CIDR
Go
1
star
53

jwt

🎫Json Web Token implementation for Go
Go
1
star
54

movieStation

电影小站 Express4+MongoDB
JavaScript
1
star
55

csteer

🐣Handling refork in cluster
JavaScript
1
star
56

consistent

💍Consistent hash ring implementation for Rust
Rust
1
star
57

ssd-mobilenet-coco-tensorflowjs-model

📝 Tensorflow.js pretrained model of ssd_mobilenet_v1_0.75_depth_coco
1
star
58

coursera-bitcoin

✍️Answers for the programming assignments in Coursera Bitcoin courses
Java
1
star
59

logger-man

🍷Lightweight, useful and stream based logging module for node.js
JavaScript
1
star