Bringing flexibility and clarity to JavaScript function calls.
name.js adds the following features to the JavaScript Function prototype:
- Named, unordered arguments
- Default argument values
For full documentation, please see the documentation pages.
You can minify the project into names.min.js
by taking the following steps:
- Ensure
build
is executable. If it's not, runchmod u+x build
on the command line - Build with the command
./build
The build script assumes that requirejs and node.js are installed globally.
To install node.js, visit the node.js download page. To install requirejs globally, first install node.js, then run npm install -g requirejs
.
A full test suit can be run by visiting tests/index.html
. Tests are written using Jasmine.
- Added changelog
- Added package.json
- Added Type checking and validation for arguments