JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 118217
  • Score
    100M100P100Q163255F
  • License MIT

The official javascript bindings for the Axiom API

Package Exports

  • @axiomhq/js

Readme

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();

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