@axiomhq/js
Version:
The official javascript bindings for the Axiom API
33 lines (20 loc) • 650 B
Markdown
The Axiom JavaScript SDK allows you to send data from a JavaScript app to Axiom.
```ts
import { Axiom } from '@axiomhq/js';
const axiom = new Axiom({
token: process.env.AXIOM_TOKEN,
});
axiom.ingest('DATASET_NAME', [{ foo: 'bar' }]);
await axiom.flush();
```
Node.js 20 or higher is required. Node.js 18 is no longer supported.
```bash
npm install @axiomhq/js
```
For more information about how to set up and use the Axiom JavaScript SDK, read documentation on [axiom.co/docs/guides/javascript](https://axiom.co/docs/guides/javascript).
[](../../LICENSE)