Collection of general purpose javascript functions. JSUS helps!
- OBJ
- ARRAY
- TIME
- EVAL
- DOM
- RANDOM
- PARSE
- FS
- COMPATIBILITY
- QUEUE
Full API description available here.
Create your customized build of JSUS.js using the make file in the bin directory
node make.js build -a // Full build
node make.js build -l obj,array -o jsus-oa.js // Only object and array libs.JSUS is designed to be modular and easy to extend.
Just use:
JSUS.extend(myClass);to extend the functionalities of JSUS. All the methods of myClass
are immediately added to JSUS, and a reference to myClass is stored
in JSUS._classes.
MyClass can be either of type Object or Function.
JSUS can also extend other objects. Just pass a second parameter:
JSUS.extend(myClass, mySecondClass);and mySecondClass will receive all the methods of myClass. In this case,
no reference of myClass is stored.
To get a copy of one of the registered JSUS libraries do:
var myClass = JSUS.require('myClass');Create html API documentation using the make file in the bin directory
node make.js docUsage: make.jsus.js [options] [command]
Commands:
build [options] [options]
Creates a custom build of JSUS.js
doc
Build documentation files
Options:
-h, --help output usage information
-V, --version output the version number
Usage: build [options] [options]
Options:
-h, --help output usage information
-l, --lib <items> choose libraries to include
-A, --analyse analyse build
-a, --all full build of JSUS
-o, --output <file>
