npm.io
1.7.0 • Published 3d ago

@axiomhq/js

Licence
MIT
Version
1.7.0
Deps
1
Size
379 kB
Vulns
0
Weekly
392.5K

Axiom JavaScript SDK

The Axiom JavaScript SDK allows you to send data from a JavaScript app to Axiom.

import { Axiom } from '@axiomhq/js';

const axiom = new Axiom({
  token: process.env.AXIOM_TOKEN,
});

axiom.ingest('DATASET_NAME', [{ foo: 'bar' }]);
await axiom.flush();

Requirements

Node.js 20 or higher is required. Node.js 18 is no longer supported.

Install

npm install @axiomhq/js

Documentation

For more information about how to set up and use the Axiom JavaScript SDK, read documentation on axiom.co/docs/guides/javascript.

License

MIT

Keywords