open-index/open-npm huggingface dataset:
npm package: @influmy/fetch
Description: influmy-fetch React component
Author: Francisco Alejandro
Latest version: 1.0.6

# @influmy/fetch
[![codecov](https://codecov.io/gh/francisco-alejandro/influmy-fetch/branch/master/graph/badge.svg)](https://codecov.io/gh/francisco-alejandro/influmy-fetch)

Hook to make http request in an easy and fancy manner. It uses fetch, so it is light and fast. No over engineering architecture needed. 

```javascript
import React, { useEffect } from 'react';
import { useFetch, METHODS } from '@influmy/fecth';

const Demo = () => {
	const [res, callApi] = useFetch({});
	useEffect(() => {
		const query = {
			postId: 1,
		};
		const url = 'https://jsonplaceholder.typicode.com/comments';
		callApi({ url, query });
	}, [callApi]);

	const { isLoading, data } = res;
	if (isLoading)  {
		return <p>Loading</p>;
	}
	
	return <pre>{JSON.stringify(data)}</pre>;
};
```

useFetch({ method }) hooks should be called with a valid http request method. GET, POST, PUT, PATCH, DELETE. By default it uses GET. You can get methods constants throw METHODS object, like METHODS.POST and others.

It returns a **response object**, with these properties:

 - data: JSON format response
 - error: boolean, saying if an error occurs
 - isLoading: boolean. It is set as loading before each request, when it is successful or fails, is set to false
 - status: HTTP response status.

A **call api function** is returned too. 
callApi({ url, query, payload })
You can set url, where request is made. Can be a string or a URL object instance. Query object, to add query params to url. Makes pagination simple. And a payload object, to set as a body in request.

So instead of making a hooks that makes request, and you call feel upset with lifecycles, this hook provides tools to manage your request and make them whenever you need it
npm package: @influmy/logger
Description: Winston logger wrapper with console transport
Author: Francisco Alejandro Jurado Pérez
Latest version: 1.0.7

#  @influmy/logger

Easy to use Winston logger wrapper with colorized console transport. Because developers simply want to start coding in their outstandable business logic.

No more console.log for debugging!

So, first and only step it is import constructor and call it.
  
    import Logger, { levels }  from  '@influmy/logger';
    export  default  new  Logger({  level: levels.info  });

A logger accepts an object with following parameters:
- **level**: Log only if level is less than or equal to this level. By default set to `info`.
  
Available levels:

    const levels = { 
      error: 0, 
      warn: 1, 
      info: 2, 
      verbose: 3, 
      debug: 4, 
      silly: 5 
    };
npm package: @influxdata/clockface
Description: UI Kit for building Chronograf and other Time Series visualization applications
Latest version: 6.3.11

# Clockface

[![npm version](https://badge.fury.io/js/%40influxdata%2Fclockface.svg)](https://badge.fury.io/js/%40influxdata%2Fclockface)

A React + Typescript UI Kit for building Chronograf and other Time Series visualization applications.

### [Documentation](https://influxdata.github.io/clockface)

### [Changelog](https://github.com/influxdata/clockface/blob/master/CHANGELOG.md)

### [Publishing Guide](https://github.com/influxdata/clockface/blob/master/PUBLISHING.md)

### [Contributing Guide](https://github.com/influxdata/clockface/blob/master/CONTRIBUTING.md)

### [Icon Font Guide](https://github.com/influxdata/clockface/blob/master/ICONFONT.md)

### [Testing a Build Locally](https://github.com/influxdata/monitor-ci#how-to-test-clockface-and-giraffe-changes-locally)

### Usage

```
npm install @influxdata/clockface

yarn add @influxdata/clockface
```
Import the Clockface stylesheet to your React app's `index.jsx` file
```tsx
import '@influxdata/clockface/dist/index.css'
```
npm package: @influxdata/flux-lsp-cli
Description: Flux cli LSP server
Author: Brandon Farmer
Latest version: 0.7.31

# Flux LSP

[![LICENSE](https://img.shields.io/github/license/influxdata/flux-lsp.svg)](https://github.com/influxdata/flux-lsp/blob/master/LICENSE)
[![Slack Status](https://img.shields.io/badge/slack-join_chat-white.svg?logo=slack&style=social)](https://www.influxdata.com/slack)

An implementation of the [Language Server Protocol](https://microsoft.github.io/language-server-protocol/) for the [Flux language](https://github.com/influxdata/flux).

# Install

```
npm i -g @influxdata/flux-lsp-cli
```


# Core functionality

The core of the flux parsing library can be found [here](https://github.com/influxdata/flux-lsp) which is compiled into WASM for consumption in this tool.

# Vim setup

There are a lot of plugins that are capable of running language servers. This section will cover the one we use or know about.

In any case, you need to recognize the `filetype`. This is done looking at the file extension, in our case `.flux`. You should place this in your `vimrc` file:

```vimrc
" Flux file type
au BufRead,BufNewFile *.flux		set filetype=flux
```

### with vim-lsp
Requires [vim-lsp](https://github.com/prabirshrestha/vim-lsp)

in your .vimrc

```vimrc
let g:lsp_diagnostics_enabled = 1

if executable('flux-lsp')
    au User lsp_setup call lsp#register_server({
        \ 'name': 'flux lsp',
        \ 'cmd': {server_info->[&shell, &shellcmdflag, 'flux-lsp']},
        \ 'whitelist': ['flux'],
        \ })
endif

autocmd FileType flux nmap gd <plug>(lsp-definition)
```

### with vim-coc

Requires [vim-coc](https://github.com/neoclide/coc.nvim). `vim-coc` uses a `coc-settings.json` file and it is located in your `~/.vim` directory. In order to run the `flux-lsp` you need to add the `flux` section in the `languageserver`.

```json
{
  "languageserver": {
      "flux": {
        "command": "flux-lsp",
        "filetypes": ["flux"]
      }
  }
}
```
If you need to debug what flux-lsp is doing, you can configure it to log to `/tmp/fluxlsp`:

```json
{
  "languageserver": {
      "flux": {
        "command": "flux-lsp",
        "args": ["-l", "/tmp/fluxlsp"],
        "filetypes": ["flux"]
      }
  }
}
```

# Supported LSP features

- initialize
- shutdown
- textDocument/definition
- textDocument/didChange
- textDocument/didOpen
- textDocument/didSave
- textDocument/foldingRange
- textDocument/references
- textDocument/rename
npm package: @influxdata/influx
Description: InfluxDB 2.0 client
Author: InfluxData
Latest version: 0.5.5

# InfluxDB 2.0 browser JavaScript client

## Disclaimer

This library is a work in progress and should not be considered production ready pre v1.0.

## Usage

Initializing the client

```typescript

import Client from '@influxdata/influx'

const client = new Client('basepath', 'token')

```

### Querying

Using the client to execute a query:

```
const query = 'from(bucket: "my_bucket") |> range(start: -1h)'

const {promise, cancel} = client.queries.execute('someorgid', query)

const csv = await promise
```

The returned promise will eventually resolve with a [Flux CSV](https://github.com/influxdata/flux/blob/master/docs/SPEC.md#csv).

The request can also be canceled with the returned `cancel` function, in which case the promise will reject with a `CancellationError`:

```
cancel() // Cancels request
```

### Writing

Data written to the database should be in line protocol

```typescript

const data = '' // Line protocal string

const response = await client.write.create('orgID', 'bucketID', data)

```

## Development

### Requirements

- OpenJDK 8 or higher
- Node 10.x or higher

### Installing dependencies

```
yarn
```

### Generating base from swagger

```
yarn run generate
```

### Releasing a new version

Ensure that:

- You have administrator access to this repo on GitHub
- You have permissions to publish to the [influxdata](https://www.npmjs.com/org/influxdata) organization on npm
- You are logged into Yarn (`yarn login`)
- You are on `master` and the working tree is clean

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

```
./publish
```
npm package: @influxdata/influxdb-templates
Description: Templates for the InfluxDB 2.0 UI
Author: Brandon Farmer
Latest version: 0.12.0

# InfluxDB Templates

This repo is a collection of [templates](https://v2.docs.influxdata.com/v2.0/visualize-data/templates/) used in the InfluxDB 2.x UI.

## Development

### Releasing a new version

Ensure that:

- You have administrator access to this repo on GitHub
- You have permissions to publish to the [influxdata](https://www.npmjs.com/org/influxdata) organization on npm
- You are logged into Yarn (`yarn login`)
- You are on `master` and the working tree is clean

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

```
./publish
```
npm package: @influxdata/oats
Description: ``` yarn add -D @influxdata/oats ```
Latest version: 0.7.0

An opinionated OpenAPI doc to TypeScript HTTP client generator.

In comparison to [openapi-generator](https://github.com/OpenAPITools/openapi-generator):

- Strives to generate readable output
- Supports enums, `oneOf`, and `allOf`
- Does not require Java runtime
- Generates `fetch`-based HTTP client with typed error responses 
- Does not support significant portions of the OpenAPI spec


## Installation

```
yarn add -D @influxdata/oats
```

## Usage

```
$ yarn run oats --help
```

```
Usage: oats [options] <openApiSpec...>

An opinionated OpenAPI doc to TypeScript HTTP client generator

Options:
  -V, --version                output the version number
  -i, --include <parts>        comma sepated list of code parts to generate (all by default: "types,request,operations")
  -p, --prettier [true/false]  prettier output code (default: true)
  --withDoc [true/false]       document generated types (default: true)
  --patchScript <file>         apply script that modifies openapi document (example: https://github.com/influxdata/influxdb-client-js/blob/master/packages/apis/scripts/patchSwagger.js)
  --storeOperations <file>     store operations to file
  -h, --help                   output usage information
  ```

## Contributing

See [`CONTRIBUTING.md`](./CONTRIBUTING.md).
npm package: @influxdata/vis
Description: This repository contains a React-based visualization library used to implement several features in the [InfluxDB 2.0](https://github.com/influxdata/influxdb/) UI. The library is currently in a pre-alpha state.
Latest version: 0.9.0

This repository contains a React-based visualization library used to implement several features in the [InfluxDB 2.0](https://github.com/influxdata/influxdb/) UI.
The library is currently in a pre-alpha state.

## Development

See [`CONTRIBUTING.md`](./CONTRIBUTING.md).