accessorizerdeprecated

Browser micromodule for creating and caching functions that access a property on an object, primarily for use in D3.

Usage no npm install needed!

<script type="module">
  import accessorizer from 'https://cdn.skypack.dev/accessorizer';
</script>

README

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.