No description or website provided.
Switch branches/tags
greenkeeper/builddependencies-0.0.2 greenkeeper/initial greenkeeper/nodeos-nodejs-8.4.0 greenkeeper/nodeos-nodejs-9.7.0 greenkeeper/nodeos-nodejs-9.7.1 greenkeeper/nodeos-nodejs-9.8.0 greenkeeper/nodeos-nodejs-9.9.0 greenkeeper/nodeos-nodejs-9.10.0 greenkeeper/nodeos-nodejs-9.10.1 greenkeeper/nodeos-nodejs-9.11.0 greenkeeper/nodeos-nodejs-9.11.1 greenkeeper/nodeos-nodejs-10.0.0 greenkeeper/nodeos-nodejs-10.1.0 greenkeeper/nodeos-nodejs-10.2.0 greenkeeper/nodeos-nodejs-10.2.1 greenkeeper/nodeos-nodejs-10.3.0 greenkeeper/nodeos-nodejs-10.4.0 greenkeeper/nodeos-nodejs-10.4.1 greenkeeper/nodeos-nodejs-10.5.0 greenkeeper/nodeos-nodejs-10.6.0 greenkeeper/prebuild-6.2.2 greenkeeper/prebuild-7.0.0 greenkeeper/prebuild-7.1.0 greenkeeper/prebuild-7.2.0 greenkeeper/prebuild-7.2.1 greenkeeper/prebuild-7.2.2 greenkeeper/prebuild-7.3.0 greenkeeper/prebuild-7.4.0 greenkeeper/prebuild-7.5.0 greenkeeper/prebuild-7.6.0 greenkeeper/prebuild-7.6.1 greenkeeper/prebuild-7.6.2 greenkeeper/prebuild-8.0.0 greenkeeper/prebuild-8.0.1 greenkeeper/prebuild-8.1.0 greenkeeper/prebuild-8.1.1 greenkeeper/prebuild-8.1.2 greenkeeper/prebuild-install-2.3.0 greenkeeper/prebuild-install-2.4.0 greenkeeper/prebuild-install-2.4.1 greenkeeper/prebuild-install-2.5.0 greenkeeper/prebuild-install-2.5.1 greenkeeper/prebuild-install-2.5.2 greenkeeper/prebuild-install-2.5.3 greenkeeper/prebuild-install-3.0.0 greenkeeper/prebuild-install-4.0.0 greenkeeper/prebuild-install-5.0.0 greenkeeper/prebuild-install-5.1.0 greenkeeper/prebuild-install-5.2.0 greenkeeper/prebuild-install-5.2.1 greenkeeper/prebuild-install-5.2.2 greenkeeper/qemu-2.11.1 master
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
scripts
.gitignore
Dockerfile
README.md
index.js
install-dependencies
package.json
vagga.yaml

README.md

Build Status

NodeOS initramfs

This package generate a initramfs image that will try to mount the users filesystem, set on the root= flag on Linux command line. If it fails to do so, it boots to a Node.js REPL prompt using an on-memory root filesystem.

Note about env.js

Since /usr/bin/env is also a Node.js script, to use less memory and boot faster it's checking that the script to be run is already a Node.js script and if so, it require()s it and exec it directly to re-use the current Node.js instance. This has the drawback that Python-inspired tricks like !module.parent or require.main === module will not work anymore. A better alternative and currently more widely used when a package can be used both as a library and as an executable is to define the executable at an independent script file and use the package.json main and bin entries.