Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 446 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 446 Bytes

SDK for posting datapoints to TechBy Impact

Basic usage:

import { Impact } from '@techby/impact'

const impact = new Impact({
  apiKey: '<your api key>'
})

impact.incrementMetric('users')
impact.incrementUnique('active-users', 'some-hashed-user-id)

TODO:

  • either bundle with webpack, or somehow embed regenerator runtime so @babel/preset-env doesn't need to be in dependencies