0.1.0 • Published 10 years ago

accessorizer v0.1.0

Weekly downloads
6
License
MIT
Repository
github
Last release
10 years ago

accessorize

This micromodule creates and caches functions that access a property on an object, primarily for use in D3.

Installation

npm install accessorize

Usage

HTML:

<script src="accessorize.js"></script>

JavaScript:

var a = createAccessorizer();
a.createBasicAccessor('id');
d3.selectAll('.guy').data(guys, a.id);

Tests

Run tests with npm test. Run tests in the debugger with 'npm run-script dtest'.

License

MIT.