open-index/open-npm huggingface dataset:
npm package: @letele/svg-icons
Description: svg icons for react applications
Author: Letele Motebang
Latest version: 0.3.0

# svg-icons &#10024;
svg icons for react applications 
- url : https://letele.github.io/svg-icons-app/

## Installation &#128640;
<code>npm install @letele/svg-icons</code>

## Usage &#129335;
```js
import  { Android } from  "@letele/svg-icons" 

function App() {
    return (
        <Android />
    )
}
```

## License &#128273;
MIT

## Reference &#9997;
Most icons are taken from the following projects
- [iconscout.com](https://iconscout.com/)
- [seeklogo.com](https://seeklogo.com/)
npm package: @leteu/jwt-decoder
Description: JSON Web Tokens decoder
Author: leteu
Latest version: 1.1.2

# jwt-decoder

JSON Web Tokens decoder

<!-- TOC -->

- [JWT Decoder](#jwt-decoder)
  - [Download](#download)
  - [Usage](#usage)
  - [API](#api)
    - [decodeToken](#decodetoken)
    - [Argument](#argument)
  - [Example](#example)
    - [On Javascript](#on-javascript)
    - [On Typescript](#on-typescript)

<!-- /TOC -->

## Download

Using npm:

```shell
$ npm i @leteu/jwt-decoder
```

Using yarn:

```shell
$ yarn add @leteu/jwt-decoder
```

## Usage

```ts
import { decodeToken } from '@leteu/jwt-decoder'
// or
import decodeToken from '@leteu/jwt-decoder'
```

## API

### decodeToken

```ts
function decodeToken<T>(token: string): T | undefined
```

Supported generic type for return

#### Argument

`token`

| Type   | Required |
| ------ | -------- |
| string | true     |

## Example

### On Javascript

```ts
import { decodeToken } from '@leteu/jwt-decoder'

const jwt =
  'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c'
const decode = decodeToken(jwt)

console.log(decode)
/*
  {
    "sub": "1234567890",
    "name": "John Doe",
    "iat": 1516239022
  }
*/
```

### On Typescript

```ts
import { decodeToken } from '@leteu/jwt-decoder'

interface DecodeInterface {
  sub: string
  name: string
  iat: number
}

const jwt =
  'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c'
const decode = decodeToken<DecodeInterface>(jwt)

console.log(decode)
/*
  {
    "sub": "1234567890",
    "name": "John Doe",
    "iat": 1516239022
  }
*/
```
npm package: @letgowebteam/varys-cli
Description: Varys performance data reporting
Latest version: 0.2.7

# varys-cli
Varys performance data reporting
<p align="center">
  <img src="varys.jpg" height="250">
</p>

## How it works
varys-cli is a command-line performance reporter which gets the data from [Lighthouse audit](https://developers.google.com/web/tools/lighthouse/) and put it into an [influxDB](https://www.influxdata.com/)

> Minimun Node version: **10.16.0**

## How to install
```
npm install -g @letgowebteam/varys-cli
```

## CLI options
```
USAGE:
$ varys [command] [options]

COMMANDS:
  run       launch audit

OPTIONS:
  --url               The url to be tested (mandatory)
  --db-name           InfluxDB database name (mandatory)
  --db-host           InfluxDB host name (mandatory)
  --db-username       InfluxDB username (optional)
  --db-password       InfluxDB password (optional)
  --headless          Add headless to chrome flags (optional)
  --no-sandbox        Add no-sandbox to chrome flags (optional)

EXAMPLE
$ varys run --db-name marvel_db --db-host localhost --url https://google.com --no-sandbox
```
                                                   
## Running in docker with optional arguments
```
docker run <build id/build tag> /bin/sh -c "xvfb-run varys run -db-name=mydatabase --db-host=localhost --db-username=pepe --db-password=1234 --url=https://us.letgo.com --no-sandbox"
```

## Docker container issues
If you run `varys-cli` inside a docker container and you get the following error:
```
...
Driver:warn Timed out waiting for page load. Checking if page is hung...
Driver:warn Page appears to be hung, killing JavaScript...
status Disconnecting from browser...
ChromeLauncher Killing Chrome instance 58
Runtime error encountered: Waiting for DevTools protocol response has exceeded the allotted time. (Method: Emulation.setScriptExecutionDisabled)

LHError: PROTOCOL_TIMEOUT
  at Timeout.setTimeout [as _onTimeout] (/varys-cli/node_modules/lighthouse/lighthouse-core/gather/driver.js:399:21)
  at ontimeout (timers.js:436:11)
  at tryOnTimeout (timers.js:300:5)
  at listOnTimeout (timers.js:263:5)
  at Timer.processTimers (timers.js:223:10)

Error  No report was generated, it may be due to a malformed URL...
```
you may need to increase `shm` when running the container by adding `--shm-size=256m`
```
docker run <build id/build tag> --shm-size=256m
```
## JavaScript Style guide

We follow the AirBnB [JavaScript Style Guide](https://github.com/airbnb/javascript). The project has been configured to run [ESLint with the AirBnB rules](https://www.npmjs.com/package/eslint-config-airbnb).