# fusion-core-js

> Send analytics data from JS/TS based products. (React, Angular, Vue, Node)

Latest version **1.0.0** (published 2021-09-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install fusion-core-js
pnpm add fusion-core-js
yarn add fusion-core-js
bun add fusion-core-js
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2021-09-03 |
| First published | 2021-09-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 17.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Vikas Singh |
| Maintainers | vikas_singh |
| Keywords | Fusion, analytics |

## Links

- npm: https://www.npmjs.com/package/fusion-core-js
- Repository: https://github.com/fusion-hq/fusion-js-es6-prod
- Homepage: https://github.com/fusion-hq/fusion-js-es6-prod#readme
- Issues: https://github.com/fusion-hq/fusion-js-es6-prod/issues
- npm.io page: https://npm.io/package/fusion-core-js

## Recent versions

- 1.0.0 (latest) — 2021-09-03

## README

# What is this ?

Send user behaviour analytics data from JS/TS based products

# Installations

`npm -i fusion --save`

Then...

```
import { Fusion } from "fusion-analytics";
const fusion = new Fusion();

fusion.init("YOUR_FUSION_API_KEY", "FUSION_HOST_URL", true);

//Resgiter ice_cream property and value
fusion.register({ ice_cream: "vanilla-chocolate" });

// Send an event with above property added
fusion.track("event-with-icecream");

//Unresgiter ice_cream property
fusion.unregister("ice_cream");

//Custom event with no ice_cream property
fusion.track("event-with-no-icecream");

//Manually send pageview event
fusion.track("Pageview");
```

---
_Source: https://npm.io/package/fusion-core-js · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
