![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Thin wrapper around Axios HTTP library which eases working with Influx HTTP API
This is a thin wrapper around Axios HTTP client which is targeted to work with InfluxDB HTTP API.
yarn add influx-api
or
npm install --save influx-api
Probably simplest possible query which will return database names in JSON format.
import { query } from 'influx-api';
const result = await query({
url: 'https://yourinflux.test:8086',
q: 'SHOW DATABASES',
});
console.log(result);
Writing field (field_1
) value to selected measurement (measurement_1
).
import { write } from 'influx-api';
const result = await write({
url: 'https://yourinflux.test:8086',
data: 'measurement_1 field_1=123',
});
console.log(result); // empty string on success
Query specific db (influx_db
) using selected u (username
) and p (password
) with given precision (ms
) expecting responseType (csv
string) as a result.
import { query } from 'influx-api';
const result = await query({
url: 'https://yourinflux.test:8086',
q: 'SHOW MEASUREMENTS',
u: 'username',
p: 'password',
db: 'influx_db',
precision: 'ms',
responseType: 'csv',
});
console.log(result);
Writing some tags and fields to a measurements (measurement_1
, measurement_2
) with selected timestamp 1532041200123
.
import { write } from 'influx-api';
const result = await write({
url: 'https://yourinflux.test:8086',
// NOTE: use of `...` instead of '...' to preserve new lines! (which are important for Line Protocol)
data: `measurement_1 tag_1=123 field_1=11,field_2=12,field_3=123 1532041200123
measurement_2 tag_1=123 field_1=1,field_2=2,field_3=3 1532041200123`
});
console.log(result); // empty string on success
params - object with following properties, see official Influx HTTP API query endpoint
SELECT
and SHOW
queries) Influx database namens
, u
, ms
, s
, m
, h
json
, csv
, msgpack
params - object with following properties, see official Influx HTTP API write endpoint
ns
, u
, ms
, s
, m
, h
one
, any
, quorum
, all
123i
for Integer)Most features listed in Features section are unavailable in the most popular node-influx package.
Does it have a stable API?
It will have as of 1.x.x version, but currently (0.x.x version) it might be modified - especially extended with a new features which should (but don't have to) be backward compatible.
Jan Grzegorowski
FAQs
Thin wrapper around Axios HTTP library which eases working with Influx HTTP API
The npm package influx-api receives a total of 0 weekly downloads. As such, influx-api popularity was classified as not popular.
We found that influx-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.