# datatops

> A JavaScript library to interact with Datatops databases.

Latest version **0.1.0** (published 2022-11-06) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install datatops
pnpm add datatops
yarn add datatops
bun add datatops
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2022-11-06 |
| First published | 2022-11-06 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 9.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jordan Matelsky |
| Maintainers | j6k4m8 |

## Links

- npm: https://www.npmjs.com/package/datatops
- Repository: https://github.com/datatops/datatops.js
- Homepage: https://github.com/datatops/datatops.js#readme
- Issues: https://github.com/datatops/datatops.js/issues
- npm.io page: https://npm.io/package/datatops

## Recent versions

- 0.1.0 (latest) — 2022-11-06

## README

# Datatops.js

## Usage

Include the `datatops.js` file in your HTML page by downloading it and linking
to it in a `<script>` tag:

```html
<script src="datatops.js"></script>
```

Alternatively, you can use this CDN link:

```html
<script src="https://cdn.jsdelivr.net/gh/datatops/datatops.js@v0.1.0/datatops.js"></script>
```

Then, use the `Datatops` object to access the library. Put this code somewhere in a `<script>` tag in your project:

```js
const datatops = new Datatops({
    server: "https://my-datatops-website.com",
    project: "my-datatops-survey",
    userToken: "1mg9dj4b",
});
```

Then you can use this code later on to save data:

```js
datatops.store({
    favoriteNumber: 42,
    favoriteColor: "blue",
    dateOfSurveySubmission: new Date(),
});
```

## Building

```shell
rollup index.js --file bundle.js --format umd --name "Datatops"
```

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