
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
influxdb-node
Advanced tools
This repository contains the javascript client of the InfluxDB time series database server from InfluxData. This client is officially supported by InfluxData.
The documentation here only covers the client API in Javascript. For more information about the InfluxDB server please consult the server documentation.
To quickly add the InfluxDB javascript client to your Node.js project:
$ npm install --save influxdb-nodejs
A full featured client written in ECMAScript 2015.
You may check the reference documentation as well.
const InfluxDB = require('influxdb-node');
const connection = new InfluxDB.Connection({
hostUrl: 'http://localhost:8086',
database: 'mydb'
});
// the connect call below is optional; if you won't do it, connection
// will be initiated on the first read/write from/to InfluxDB
connection.connect().then(() => {
console.log('Connection established successfully');
}).catch((e) => {
console.error('Unexpected Error',e);
});
const dataPoint1 = {
measurement : 'outdoorThermometer',
timestamp: new Date(),
tags: {
location: 'greenhouse'
},
fields: { temperature: 23.7 }
};
// you can also provide tag and field data as arrays of objects:
const dataPoint2 = {
measurement : 'outdoorThermometer',
timestamp: new Date().getTime()+1000000,
tags: [
{
key: 'location',
value: 'outdoor'
}
],
fields: [
{
key: 'temperature',
value: 23.7
}
]
};
const series = [dataPoint1, dataPoint2];
connection.write(series).catch(console.error);
// if you need to, you may enforce emptying write buffers between
// your application and InfluxDB
connection.flush().then(() => {
console.log('Data written into InfluxDB')
}).catch(console.error);
connection.executeQuery('select * from outdoorThermometer group by location').then((result) => {
console.log(result);
}).catch(console.error);
let connection = new InfluxDB.Connection({
hostUrl: 'http://localhost:8086',
database: 'mydb'
});
connection.executeQuery('drop measurement outdoorThermometer').then(() => {
console.log('Measurement dropped');
}).catch(console.error);
FAQs
Node.js client for InfluxDB
We found that influxdb-node 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.