Node.js

 
 
Node.js is a server-side software system designed for writing scalable Internet applications, notably web servers.
It is build on built on Chrome's JavaScript runtime. Programs are written on the server side in JavaScript, using event-driven, asynchronous I/O to minimize overhead and maximize scalability.

Node.js contains a built-in HTTP server library, making it possible to run a web server without the use of external software, such as Apache or Lighttpd, and allowing more control of how the web server works. Node.js enables web developers to create an entire web application in JavaScript, both server-side and client-side.

The latest Node.js version can be downloaded from: http://nodejs.org

Even numbered versions (0.4, 0.6, 0.8) are stable, and odd numbered versions (0.3, 0.5) are unstable. The stable releases are API-stable, which means that if you are using 0.8.1 and 0.8.2 comes out, you should be able to upgrade with no issues.







How to browserify bitcoinjs/bip39



Information
Browserify will recursively analyze all the require() calls in your app in order to build a bundle you can serve up to the browser in a single <script> tag.

More information see:
http://browserify.org/
https://www.npmjs.com/package/bip39
https://github.com/bitcoinjs/bip39

Operating system used
macOS 10.12 Sierra

Software prerequisites
node.js

Procedure
  1. Install browserify.
    Type: npm install -g browserify

  2. Show all installed node modules and their versions.
    Type: npm -g ls --depth=0

    You should see:
    [email protected]

  3. Show browserify help.
    Type: browserify --help

  4. Install uglifyjs.
    Type: npm install -g uglifyjs

  5. Show uglifyjs help.
    Type: uglifyjs --help

  6. Show all installed node modules and their versions.
    Type: npm -g ls --depth=0

    You should see:
    [email protected]

  7. In the following example "bitcoinjs/bip39" will be browserified.
    Goto https://github.com/bitcoinjs/bip39 and download a release version, for example: v2.4.0.
    Unzip to folder ~/bip39-2.4.0.

  8. Type: cd ~/bip39-2.4.0

  9. Type: npm install
    This will install all node modules locally as specified in the package.json file.

  10. Type: browserify -s bip39 index.js | uglifyjs > bip39.min.js
    This will create the bip39.min.js file using the index.js file as input.

  11. How this library is used see: Online Ethereum tools