2016-07-22 00:16:45 +02:00
|
|
|
# lik
|
|
|
|
light little helpers for node
|
|
|
|
|
2016-09-21 13:57:23 +02:00
|
|
|
## Availabililty
|
2017-04-09 16:40:34 +02:00
|
|
|
[](https://www.npmjs.com/package/lik)
|
|
|
|
[](https://GitLab.com/pushrocks/lik)
|
|
|
|
[](https://github.com/pushrocks/lik)
|
|
|
|
[](https://pushrocks.gitlab.io/lik/)
|
2016-09-21 13:57:23 +02:00
|
|
|
|
|
|
|
## Status for master
|
2017-04-09 16:40:34 +02:00
|
|
|
[](https://GitLab.com/pushrocks/lik/commits/master)
|
|
|
|
[](https://GitLab.com/pushrocks/lik/commits/master)
|
|
|
|
[](https://www.npmjs.com/package/lik)
|
2016-09-21 13:57:23 +02:00
|
|
|
[](https://david-dm.org/pushrocks/lik)
|
|
|
|
[](https://www.bithound.io/github/pushrocks/lik/master/dependencies/npm)
|
|
|
|
[](https://www.bithound.io/github/pushrocks/lik)
|
|
|
|
[](https://nodejs.org/dist/latest-v6.x/docs/api/)
|
|
|
|
[](https://nodejs.org/dist/latest-v6.x/docs/api/)
|
|
|
|
[](http://standardjs.com/)
|
2016-07-22 00:16:45 +02:00
|
|
|
|
|
|
|
## Usage
|
2017-04-09 16:40:34 +02:00
|
|
|
Use TypeScript for best in class instellisense.
|
2016-07-22 00:16:45 +02:00
|
|
|
|
2017-04-09 16:40:34 +02:00
|
|
|
```javascript
|
2016-07-22 00:16:45 +02:00
|
|
|
// import any tool that you need from lik
|
2016-09-23 10:20:20 +02:00
|
|
|
import { Stringmap, Objectmap, Observablemap } from "lik";
|
2016-09-21 13:51:37 +02:00
|
|
|
```
|
|
|
|
|
2016-09-23 10:20:20 +02:00
|
|
|
### class Stringmap
|
|
|
|
Stringmap allows you to keep track of strings. It allows you to register triggers for certain events
|
|
|
|
like when a certain string is removed or added to the map
|
|
|
|
|
|
|
|
### class Objectmap
|
|
|
|
Sometimes you need to keep track of objects, but implementing logic for removing, finding or updating is tedious.
|
|
|
|
Objectmap takes care of keeping track of objects for you.
|
|
|
|
|
|
|
|
### class Observablemap
|
|
|
|
Event Emitters are nice. However often times you end up with registering multiple listeners for the exact same thing.
|
|
|
|
Observables have a smaller footprint and a more manageable subscribe logic.
|
|
|
|
Observablemap registers only one rxjs observable per event and then continues to reference
|
|
|
|
the same observable that you can subscribe to.
|
|
|
|
|
2017-04-09 16:40:34 +02:00
|
|
|
For further information read the linked docs at the top of this README.
|
2016-09-23 10:20:20 +02:00
|
|
|
|
2017-04-09 16:40:34 +02:00
|
|
|
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh)
|
|
|
|
| By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy.html)
|
|
|
|
|
|
|
|
[](https://push.rocks)
|