2.2.0 • Published 2 years ago

bayanplus-js v2.2.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Bayanplus JS

Frontend library written in Typescript for Bayanplus

version downloads Bundle

Features ✨

  • You can use it with any frontend framework you want
  • Very simple and light
  • Fully typed

💡 Full Documentation here

Install

To install the packages run in one of these commands

npm install bayanplus-js

or with yarn

yarn add bayanplus-js

Basic usage

import bayanplus from 'bayanplus-js';

// first and most important initiliaze the app with the project id
// you can find the project id on https://bayanplus.co
// you only need to do this once
bayanplus.init({
  projectId: 'xxxxx',
});

// now you can track any event you want like
// you can track as many events you want on any file as long as you initiliazed the app
bayanplus.event('Buy Book');

// after you user has logged in, you can create profile for the user
// by using `set` function
bayanplus.user.set({
  name: 'Salah',
  email: 'Salah@gmail.com',
  isDarkMode: true,
});
2.2.0

2 years ago

2.1.1

2 years ago

2.0.2

2 years ago

2.1.0

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.4.0

3 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago