symbol-registry

Cache system for es6 symbols =======================

Usage no npm install needed!

<script type="module">
  import symbolRegistry from 'https://cdn.skypack.dev/symbol-registry';
</script>

README

symbol-registry

Cache system for es6 symbols

Installation


npm install symbol-registry

var registry = require('symbol-registry');

API Reference


Here is the full list of accessible methods:

Service [require('symbol-registry')]

registry( keys )

Params:

  • keys: String or Array. key(s) to retrieve as symbol.

Returns:

  • String or Array. symbol(s)

Methods

erase( keys )

Clear the symbol cache

Params:

  • keys: (Optional) String or Array. key(s) to delete.

Properties

caseSensitive

Boolean

Determine if the storage's case sensitive
[OnValueChange]: triggers a clear cache


Modify and build


npm install

Build command: grunt es6 It will create js files from the es6 sources.

Unit tests: grunt unit