Socket
Book a DemoInstallSign in
Socket

@skyra/influx-utilities

Package Overview
Dependencies
Maintainers
2
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@skyra/influx-utilities

A tiny opinionated abstraction layer for InfluxDB for interacting with a single organization

1.1.0
latest
Source
npmnpm
Version published
Weekly downloads
144
51.58%
Maintainers
2
Weekly downloads
 
Created
Source

@skyra/influx-utilities

A tiny opinionated abstraction layer for InfluxDB for interacting with a single organization, based on Skyra's internal tools.

Usage

You can provide the configuration for the Influx client in several ways.

  • INFLUX_URL: ConnectionOptions.url, the base URL to be used.
  • INFLUX_TOKEN: ConnectionOptions.token, the authentication token.
  • INFLUX_ORG: ConnectionOptions.org, the organization to use for the query and write APIs.
  • INFLUX_BUCKET: ConnectionOptions.writeBucket, the bucket to write to in the write API.

Environment Variables

// index.ts
process.env.INFLUX_URL = 'https://influxdb.skyra.pw';
process.env.INFLUX_TOKEN = 'my-secret-token';
process.env.INFLUX_ORG = 'Skyra-Project';
process.env.INFLUX_BUCKET = 'analytics';

import { Client } from '@skyra/influx-utilities';

const client = new Client();

setInfluxVariables

// index.ts
import { Client, setInfluxVariables } from '@skyra/influx-utilities';

setInfluxVariables({
	influxUrl: 'https://influxdb.skyra.pw',
	influxToken: 'my-secret-token',
	influxOrg: 'Skyra-Project',
	influxBucket: 'analytics'
});

const client = new Client();

Directly through Client.Options

import { Client } from '@skyra/influx-utilities';

const client = new Client({
	url: 'https://influxdb.skyra.pw',
	token: 'my-secret-token',
	org: 'Skyra-Project',
	writeBucket: 'analytics'
});

Keywords

discord

FAQs

Package last updated on 22 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.