0.2.2 • Published 5 years ago

token-memory v0.2.2

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

token-memory Coveralls Status Travis Status

Coverity Status

A small library that provides reliable memories

Installation

npm install --save token-memory

Usage Example

  "use strict";

  var Token = require("token-memory");

  function newToken() {
    Token(({id, root, token, broadcast, listen}) => {
      token.get('id').once(idFound => {
        if ( id === idFound) {
          broadcast.get('PING').put(id)
          listen.get('PONG').on((peer) => {
            console.log('PEER :', peer);
          });
        }
      })
    })
  }

  newToken();

Tests

npm test

Publish

npm login # usertoken npm account

npm publish # token-memory package

Contributing

CONTRIBUTING

Change Log

CHANGELOG

References

build NPM module

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.0.1

7 years ago

0.1.0

9 years ago