0.3.0 • Published 4 months ago

honeypot-run v0.3.0

Weekly downloads
-
License
BUSL-1.1
Repository
-
Last release
4 months ago

honeypot-npm

This repo contains the npm module for installing Honeypot.

https://www.npmjs.com/package/honeypot-run

Installing

npm i honeypot-run

Usage

// configure the async script URL
honeypot.load('https://your-honeypot/js');

// optionally link the honeypot identity to a user
honeypot.identify('user123', {'name': 'John'}, 'account')

// listen for flags
honeypot.on('flag', (flag) => {
    // do something with the flag
    console.log('flag received', flag)
})

// track an event called 'Page visit'
honeypot.track('Page visit')

// or, if you want to associate the event with additional properties
honeypot.track('Page visit', {'foo': 'bar'})

// get the user information, including their handprint
honeypot.get().then((honey) => {
    console.log('Got honey!', honey);
})
0.2.13

4 months ago

0.2.12

4 months ago

0.2.11

4 months ago

0.3.0

4 months ago

0.2.10

4 months ago

0.2.7

4 months ago

0.2.6

4 months ago

0.2.9

4 months ago

0.2.8

4 months ago

0.2.5

4 months ago

0.2.4

4 months ago

0.2.1

6 months ago

0.2.3

6 months ago

0.2.2

6 months ago

0.2.0

7 months ago

0.1.0

8 months ago