Skip to content

Commit

Permalink
Fix info in package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
oskarhane committed Jan 12, 2017
1 parent f793111 commit 7fa7d64
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 7 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ but without having to store everything in the Redux global store.
Simple standalone usage:

```javascript
// Import (not available yet)
import { getBus } from '@oskarhane/suber'
// Import
import { getBus } from 'suber'

// Get bus
const bus = getBus()
Expand All @@ -17,7 +17,7 @@ const bus = getBus()
const unsub = bus.take('MY_CHANNEL', (data) => {
console.log(data)
})
// or just one
// or just one (unsubscribes automatically)
bus.one('MY_CHANNEL', (data) => {
console.log(data)
})
Expand All @@ -33,7 +33,7 @@ the Redux ecosystem of great middlewares.
```javascript
// app.js
// App init file
import { emitFn, createReduxMiddleWare } from '@oskarhane/suber'
import { emitFn, createReduxMiddleWare } from 'suber'
import { createStore, applyMiddleware } from 'redux'

// Init
Expand Down
19 changes: 16 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,27 @@
{
"name": "suber",
"version": "1.0.0",
"description": "A message bus",
"main": "lib/bus.js",
"description": "A global message / event bus prepared for usage in combination with other bus systems",
"main": "lib/bus",
"scripts": {
"build": "npm run lint && babel src -d lib --ignore \"**/*.test.js\" ",
"lint": "standard",
"test": "jest --watch"
},
"author": "Oskar Hane",
"repository": {
"type" : "git",
"url" : "https://github.com/oskarhane/suber.git"
},
"author": {
"name": "Oskar Hane",
"email": "[email protected]"
},
"homepage": "http://oskarhane.com",
"keywords": [
"channels",
"event bus",
"message bus"
],
"license": "MIT",
"devDependencies": {
"babel-cli": "^6.18.0",
Expand Down

0 comments on commit 7fa7d64

Please sign in to comment.