Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
clickhouse-ts
Advanced tools
import { Clickhouse } from 'clickhouse-ts'
import fs from 'fs'
import { serializeError } from 'serialize-error'
const client = new Clickhouse(
{
url: 'url',
port: 8443,
user: 'user',
password: 'password',
database: 'database',
ca: fs.readFileSync('cert.crt')
},
{
/*
cacheClient: 'system' | 'redis' | undefined
if 'system', Node.js will accumulate insert rows filtered by table name and insert by interval or overflowing
if 'redis' Redis client will do the same
if nothing package will not use caching
*/
cacheClient: 'system',
defaultResponseFormat: 'JSON',
clickhouseOptions: {
/*
any clickhouse options
https://clickhouse.tech/docs/en/operations/settings/settings/
*/
send_progress_in_http_headers: '1'
}
}
)
client
.query('WITH now() as t SELECT t', {
responseFormat: 'TSV',
// ...another query options
})
.then(result => result.data.data)
.catch(e => serializeError(e))
client
.insert(
'strings',
[{ date: '2021-01-01', string: 'string' }],
{
responseFormat: 'CSVWithNames' // or another format
// another query options
}
)
.then(response => response)
.catch(e => serializeError(e))
FAQs
Light stable Clickhouse client
The npm package clickhouse-ts receives a total of 57 weekly downloads. As such, clickhouse-ts popularity was classified as not popular.
We found that clickhouse-ts 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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.