Parts of java.util ported to JavaScript intended to speed up porting Java to JavaScript
JavaScript Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dist
doc
src
test
.gitignore
.travis.yml
Gruntfile.js
README.md
authors.txt
bower.json
deps.js
index.js
license-notice.txt
package.json
runtests.sh

README.md

javascript.util

javascript.util is a port of selected parts of java.util to JavaScript which main purpose is to ease porting Java code to JavaScript.

javascript.util can be used in browsers or as a Node JS module.

Build Status

API docs

Usage

Browsers

Simply include javascript.util.min.js on your page.

Node JS

Install latest released version:

    npm install javascript.util

A simple Node JS code example using javascript.util:

    require('javascript.util');
    var ArrayList = javascript.util.ArrayList;
    var array = new ArrayList();
    array.add(1);

Development environment

Linux or similar is assumed.

Dependencies

  • Node JS
  • mocha (for tests)
  • chai (for tests)
  • bower (for dependencies)
  • grunt (for builds)

Unit tests

    npm test