0.0.1 • Published 6 years ago

@kyso/is-unique-view v0.0.1

Weekly downloads
18
License
MIT
Repository
-
Last release
6 years ago

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
}
0.0.1

6 years ago