Skip to content
InfluxDB 2.0 JavaScript client
TypeScript JavaScript Makefile
Branch: master
Clone or download

Latest commit

rhajek Merge pull request #157 from bednar/master
fix(security): security update of minimist
Latest commit f043ff5 Mar 16, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci chore: trying to fix codecoverage reports Feb 14, 2020
.github chore: rename ISSUE_TEMPLATE Dec 11, 2019
.vscode feat(tests): add test for browser's fetch transport Feb 13, 2020
examples fixed link to write.js Mar 10, 2020
packages chore(release): publish v1.1.0 Mar 13, 2020
scripts feat: introduce monorepo Jan 5, 2020
.eslintignore Add ESLint/Prettier configuration to project Mar 8, 2019
.eslintrc.json feat(apis): generate apis from swagger operations Jan 9, 2020
.gitignore docs: added social badges Mar 5, 2020
.npmignore Ensure type definitions are published with package Jun 24, 2019
.nvmrc initial project structure and tool setup Nov 28, 2019
.prettierignore feat: generate type definitions which are ignored by prettier Jan 5, 2020
.prettierrc.json initial project structure and tool setup Nov 28, 2019
CHANGELOG.md fix(security): security update of minimist Mar 16, 2020
LICENSE initial project structure and tool setup Nov 28, 2019
Makefile feat: add User-Agent request header (#156) Mar 11, 2020
README.md feat: add User-Agent request header (#156) Mar 11, 2020
lerna.json chore(release): publish v1.1.0 Mar 13, 2020
package.json fix(security): security update of minimist Mar 16, 2020
tsconfig.base.json feat: introduce monorepo Jan 5, 2020
yarn.lock fix(security): security update of minimist Mar 16, 2020

README.md

influxdb-client-javascript

CircleCI codecov code style: prettier License npm GitHub issues GitHub pull requests Slack Status

This repository contains the reference javascript client for InfluxDB 2.0. Both node and browser environments are supported.

Note: This library is for use with InfluxDB 2.x. For connecting to InfluxDB 1.x instances, see node-influx.

Features

InfluxDB 2.0 client consists of two packages

  • @influxdata/influxdb-client
    • Querying data using the Flux language
    • Writing data
      • batched in chunks on background
      • automatic retries on write failures
  • @influxdata/influxdb-client-js-apis
    • provides all other InfluxDB 2.0 APIs for managing
      • sources, buckets
      • tasks
      • authorizations
      • health check
      • ...
    • built on top of @influxdata/influxdb-client-js

Installation

To use write or query InfluxDB in your project:

$npm install --save @influxdata/influxdb-client

or

$yarn add @influxdata/influxdb-client

To use InfluxDB management APIs in your project:

$npm install --save @influxdata/influxdb-client-apis

or

$yarn add @influxdata/influxdb-client-apis

Usage

See examples

Build Requirements

  • node v12.13.1 or higher (older versions will work as well)
  • yarn 1.9.4. or higher (older versions will work as well)

Run all unit tests:

$ yarn test:unit

Check code coverage of unit tests:

$ yarn coverage

Development

Releasing a new version

Ensure that:

  • You have administrator access to this repo on GitHub
  • You have permissions to publish to the influxdata organization on npm
  • You are on master and the working tree is clean

Then run the publish script in the root of the repo:

make publish VERSION=1.1.0

Contributing

If you would like to contribute code you can do through GitHub by forking the repository and sending a pull request into the master branch.

License

The InfluxDB 2.0 javascript client is released under the MIT License.

You can’t perform that action at this time.