@putdotio/pas-js
Version:
Client-side JS client for Putio Analytics System
37 lines (26 loc) • 1.27 kB
Markdown
# `@putdotio/pas-js`
[](https://travis-ci.org/putdotio/pas-js)
[](https://coveralls.io/github/putdotio/pas-js?branch=master)



Browser client for [Put.io Analytics System](https://github.com/putdotio/pas)
## Installation
```bash
$ npm install @putdotio/pas-js -S
```
### Module
```js
import Pas from '@putdotio/pas-js'
```
### CommonJS
```js
const Pas = require('@putdotio/pas-js').default
```
## API
| Method Name | Parameters |
| :----------- | :----------------------------------------------------------- |
| **alias** | `({ id: string/number, hash: string })` |
| **identify** | `({ id: string/number, hash: string, properties?: object })` |
| **track** | `(name: string, properties?: object)` |
| **pageView** | - |