commandbar
Advanced tools
Comparing version 1.2.0 to 1.2.1
{ | ||
"name": "commandbar", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Javascript Utility for CommandBar", | ||
@@ -5,0 +5,0 @@ "main": "build/main/index.js", |
@@ -1,10 +0,14 @@ | ||
# CommandBar Browser Utilities | ||
# commandbar | ||
### Installation | ||
## Installation | ||
``` | ||
npm install @commandbar/browser --save | ||
npm install commandbar --save | ||
or | ||
yarn add commandbar | ||
``` | ||
### Usage | ||
## Usage | ||
@@ -14,3 +18,3 @@ ``` | ||
import { init } from '@commandbar/browser'; | ||
import { init } from 'commandbar'; | ||
@@ -20,8 +24,7 @@ const App = () => { | ||
// ... | ||
// Identify user... | ||
const userID = ... | ||
window.CommandBar.boot('current_user_id'); | ||
// ... | ||
window.CommandBar.boot(userID); | ||
} | ||
``` |
29