@kyso/is-unique-view
v0.0.1
Published
This library lets you check if a pageview is unique. Unique being defined as a user has not viewed the page in the last 30minutes.
Downloads
6
Readme
is-unique-view
This library lets you check if a pageview is unique. Unique being defined as a user has not viewed the page in the last 30minutes.
Its pretty easy to install and use.
Install
npm install is-unique-view
or
yarn add is-unique-view
Usage
const isUniqueView = require('is-unique-view')
if (isUniqueView()) {
// view is unique
} else {
// view is not unique
}