Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/realizehit/publisher
realizehit publisher
https://github.com/realizehit/publisher
Last synced: 16 days ago
JSON representation
realizehit publisher
- Host: GitHub
- URL: https://github.com/realizehit/publisher
- Owner: realizehit
- License: gpl-3.0
- Created: 2016-01-25T14:26:44.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-25T15:42:16.000Z (almost 9 years ago)
- Last Synced: 2024-04-26T19:03:31.038Z (8 months ago)
- Language: JavaScript
- Size: 17.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# publisher [![Build Status](https://travis-ci.org/realizehit/publisher.svg?branch=master)](https://travis-ci.org/realizehit/publisher)
realizehit publisherThis modules purpose is to be used from within your app in case you don't want
to use [server-api](https://github.com/realizehit/server-api) for publishing your payloads.Probably you might want to use [realizehit/realizehit](https://github.com/realizehit/realizehit) instead.
## Usage
#### Run as NPM module
```bash
npm i -g realizehit-publisher
``````javascript
var Publisher = require( 'realizehit-publisher' )var publisher = new Publisher( 'redis://redis-host:6379' )
// Publish a payload into { foo: 'bar' } subscription
publisher.publish(
{ foo: 'bar' },
'Hello world'
)
```## Contributing
### Running with node
```bash
npm install
npm test
```