Skip to content

markstickley/names.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

names.js

Bringing flexibility and clarity to JavaScript function calls.

About

name.js adds the following features to the JavaScript Function prototype:

  • Named, unordered arguments
  • Default argument values

Usage

For full documentation, please see the documentation pages.

Building

You can minify the project into names.min.js by taking the following steps:

  • Ensure build is executable. If it's not, run chmod 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.

Tests

A full test suit can be run by visiting tests/index.html. Tests are written using Jasmine.

Dependencies

  • names.js can be used with requirejs but does NOT depend on it.
  • Tests depend on Jasmine

Changelog

0.1.0

  • Added changelog
  • Added package.json
  • Added Type checking and validation for arguments

About

Named arguments for JavaScript functions

Resources

Stars

Watchers

Forks

Packages

No packages published