open-index/open-npm huggingface dataset:
npm package: @fcus/oauth-1-header
Description: Node.js lib for OAuth1.0 header generation
Author: Vaniel Silva
Latest version: 0.3.2

# OAuth1.0 header

Node.js lib for OAuth1.0 header generation.

## Installation

`npm install --save oauth-1-header`

## How to use

```
import { OAuth } from 'oauth-1-header';

const authorization = OAuth.authorize(
    {
        method: 'method', // DELETE, GET, PATCH, POST, PUT
        url: 'https://example.com/some-url?query=test',
    },
    {
        consumer: {
            key: 'key',
            secret: 'secret',
        },
    },
);
```

Then set `authorization` as one of your headers
npm package: @fcus/spotler-client
Description: Node.js client for the Spotler REST API. Made with Typescript
Author: Anne Jouke van den Berg
Latest version: 0.2.8

# Spotler Client

Node.js Spotler client made with Typescript. 

## Important

This library is in development. It won't offer all of the endpoints the Spotler API offers, nor is it tried and tested

## Installation

- `npm i @fcus/spotler-client`

## Checklist

- [x] Set up tests
- [x] Create base client
- [x] Figure out OAuth 1.0a
- [x] Extract OAuth 1.0a header solution as separate package and import
- [x] Create simple GET endpoint
- [x] Create basic interface test check
- [x] Scan the OpenAPI document to match all interfaces
- [ ] Publish beta version to NPM
- [ ] Create GET endpoint with params
- [ ] Create POST & Put endpoints
- [ ] Write tests for all features
- [ ] Set version 1.0.0
npm package: @fcv/eslint-config
Description: ESLint configuration base for FCV projects
Author: FCV Technologies Ltd.
Latest version: 1.0.0-alpha.2

# ESLint config

ESLint configuration base for FCV projects.

Also includes the rules for Prettier.

## Installation

npm:
```bash
$ npm i -D eslint prettier @fcv/eslint-config
```

yarn:
```bash
$ yarn add -D eslint prettier @fcv/eslint-config
```

1. Create `.eslintrc.js` in your project root and extend with one or more of the included configurations.
    ```js
    module.exports = {
      extends: ['@fcv'],
    }
    ```

    Configurations:

    * `@fcv` or `@fcv/eslint-config` - includes `base` and `react`
    * `@fcv/eslint-config/base` __(required)__ - includes recommend rules for JS projects
    * `@fcv/eslint-config/react` - includes recommended rules for React projects
    * `@fcv/eslint-config/next` - includes recommended rules for Next.js projects (does not include `react` rules)

2. Create `prettier.config.js`

    ```js
    module.exports = require('@fcv/eslint-config/prettier.config');
    ```

3. (optional) Add npm scripts to your `package.json` , for example:
    ```js
    "scripts": {
      "lint": "eslint *.js src config",
      "fix": "npm run lint -- --fix"
    }
    ```
    Note: You'll have to adjust the files you want to lint. In this example ESLint will process all `.js` files in the project directory as well as all files in the `src` and `config` folders with subfolders.
npm package: @fcv/hygen-react
Description: Hygen code generators for React projects
Author: FCV Technologies Ltd.
Latest version: 1.0.0-alpha.2

# hygen-react

This is a hygen package for React components.

## Quick Start

```bash
$ npm i @fcv/hygen-react
$ npx cp-cli node_modules/@fcv/hygen-react/_templates _templates
```

Then use `help` to see what the generator can do:

```
$ yarn hygen component help

hygen component new

Generates a React component. Prompts will ask for type, path, name, styles, redux.

- Styles assumes Material UI `withStyles`.
- Redux assumes reselect and recompose being installed.
```
npm package: @fcxlabs/colors
Description: Colors package for FCx Labs
Author: fernando.lopes
Latest version: 1.2.2

# fcx-colors

Plataforma de cores para uso em projetos de interface do FCx Labs.

## Installation

`yarn add @fcxlabs/colors`

or

`npm i @fcxlabs/colors`

## Usage

### stylesheet:

```js
import { red } from "@fcxlabs/colors";

const styles = StyleSheet.create({
  container: {
    backgroundColor: red.shades.light35,
  },
});
```

## Colors reference

### Main

- red
- green
- pear
- gray

### Shades

#### light

- light5
- light15
- light25
- light35
- light45
- light55
- light65
- light75
- light85
- light95

#### dark

- dark5
- dark15
- dark25
- dark35
- dark45
- dark55
- dark65
- dark75
- dark85
- dark95
npm package: @fcxlabs/fonts
Description: Fonts package for FCx Labs
Author: jemerson.barros
Latest version: 1.0.8

# fcx-colors

Plataforma de cores para uso em projetos de interface do FCx Labs.

## Installation

`yarn add @fcxlabs/fonts`

or

`npm i @fcxlabs/fonts`

## Usage

### stylesheet

```js
import { line-height } from "@fcxlabs/fonts";

const styles = StyleSheet.create({
  container: {
    body: semantic.body.lineheight,
  },
});
```

## Tokens reference

### _primitive (não usar diretamente)

- fontsize
- fontfamily
- fontsize
- fontweight
- lineheight
npm package: @fcxlabs/grid
Description: Scale package for FCx Labs
Author: fernando.lopes
Latest version: 1.0.3

# fcx-grid

Plataforma de espaçamentos e grids para uso em projetos de interface do FCx Labs.

## Installation

`yarn add @fcxlabs/grid`

or

`npm i @fcxlabs/grid`

## Usage

### Example:

```js
import { fcxSpacing, toScale } from "@fcxlabs/grid";

const styles = StyleSheet.create({
  container: {
    padding: fcxSpacing.capital,
    fontSize: toScale(12),
  },
});
```

## Methods

```js
toScale(value: number) => return value * scale
```

## Properties

### fcxSpacing:

- unit
- tiny
- xSmall
- small
- regular
- large
- xLarge
- xxLarge
- capital
npm package: @fczbkk/animate
Description: Bare bones animation helper.
Author: Riki Fridrich
Latest version: 2.1.0

# Animate

Bare bones animation helper.

[![npm](https://img.shields.io/npm/v/@fczbkk/animate.svg?maxAge=2592000)](https://www.npmjs.com/package/@fczbkk/animate)
[![npm](https://img.shields.io/github/license/fczbkk/animate.svg?maxAge=2592000)](https://github.com/fczbkk/animate/blob/master/LICENSE)
[![David](https://img.shields.io/david/fczbkk/animate.svg?maxAge=2592000)](https://david-dm.org/fczbkk/animate)
[![Travis](https://img.shields.io/travis/fczbkk/animate.svg?maxAge=2592000)](https://travis-ci.org/fczbkk/animate)

## How to use

Install the library via NPM:

```shell
npm install @fczbkk/animate --save
```

Then use in your project like this:

```javascript
import createAnimation from '@fczbkk/animate';

// animate left position of an element from 0px to 200px in 0.5s
const my_animation = createAnimation({
  duration: 500,
  onTick: updateElementPosition(position) {
    document.querySelector('#my_element').style.left =
      (position * 200) + 'px';
  }
});

my_animation.start();
```

## Documentation

### AnimationConfig

### Animation

Class representing the animation.

#### constructor

Create animation.

**Parameters**

-   `custom_config` **\[[AnimationConfig](#animationconfig)](default {})** 

#### isRunning

Returns `true` if animation is running.

Returns **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** 

#### isPaused

Returns `true` if animation is paused.

Returns **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** 

#### start

Starts the animation. If the animation was running prior to starting, it will be stopped first.

#### stop

Stops running animation. If animation is not running, nothing happens.

#### pause

Pauses running animation. If animation is not running, nothing happens.

#### resume

Resumes paused animation. If animation is not paused, nothing happens.

#### getPosition

Returns current position of animation. If animation is not running, returns zero.

Returns **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** Value between 0 (start) and 1 (end).

#### updateConfig

Updates animation config with new values. Unknown values will be ignored.

**Parameters**

-   `config` **\[[AnimationConfig](#animationconfig)](default {})** 

## Bug reports, feature requests and contact

If you found any bugs, if you have feature requests or any questions, please, either [file an issue at GitHub](https://github.com/fczbkk/animate/issues) or send me an e-mail at <a href="mailto:riki@fczbkk.com">riki@fczbkk.com</a>.

## License

Animate is published under the [MIT license](https://github.com/fczbkk/animate/blob/master/LICENSE).
npm package: @fczbkk/calculator
Description: Yet another calculator for workshop
Author: Riki Fridrich
Latest version: 1.2.0

# Yet another calculator

Just a simple calculator. Nothing special.

## Documentation

<!-- Generated by documentation.js. Update this documentation by updating the source code. -->

#### Table of Contents

-   [add](#add)
    -   [Parameters](#parameters)
-   [divide](#divide)
    -   [Parameters](#parameters-1)

### add

Adds two numbers. Or strings, but don't use it.

#### Parameters

-   `a` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** 
-   `b` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** 

Returns **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** 

### divide

Divides numbers, except when `b` is zero.

#### Parameters

-   `a` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** 
-   `b` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** Never zero!


-   Throws **motherfucker** 

Returns **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** 

## Contact

Please, do not contact us. Ever.
npm package: @fczbkk/eslint-config
Description: Default ESLint config for personal projects of Riki Fridrich.
Author: Riki Fridrich
Latest version: 1.0.0

# Default ESLint config for personal projects of Riki Fridrich

## How to add to project

Add module `@fczbkk/eslint-config` as a dev dependency to your project:

```
npm install @fczbkk/eslint-config --save
```

Then [extend your ESLint config](https://eslint.org/docs/user-guide/configuring#extending-configuration-files) with `@fczbkk`. For example, if you use `.eslintrc.json`, it could look like this:

```json
{
    "extends": "@fczbkk"
}
```

## Different linting for development and build

The rules in this config use `warn` instead of `error`. This allows you to bash out ugly code while developing, but it will force you to clean it up before you do the build. Here's what you should do:

Create two linter tasks in your project. One for regular development (e.g. `eslint`) and one for build (e.g. `eslint:build`):

```json
{
  "scripts": {
      "eslint": "eslint ./src/**/*.js",
      "eslint:build": "npm run eslint -- --max-warnings 0"
  }
}
```

This way you can use the regular lint task while developing (e.g. as a part of your test watcher task) and it will allow you to do all kinds of stuff (e.g. using `console.log`), but then you should use the build lint task when building (e.g. as a part of `preversion` task) and it will prevent you to create a build that contains debug or mis-formatted code.
npm package: @fczbkk/event-simulator
Description: Cross-browser simulator of regular and mouse events in JavaScript.
Author: Riki Fridrich
Latest version: 1.1.0

# Event Simulator

Cross-browser simulator of regular and mouse events in JavaScript.

## Documentation

### simulateEvent

Fires an event of provided type on provided object

**Parameters**

-   `target_object` **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)** Any object that can fire an event
-   `event_type` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** Event identifier

**Examples**

```javascript
simulateEvent(window, 'scroll');
```

### simulateMouseEvent

Fires a mouse event on provided object

**Parameters**

-   `target_object` **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
-   `custom_properties` **\[[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)](default {})** 

**Examples**

```javascript
simulateMouseEvent(window, {type: 'mousedown', button: 'right'});
```

## Bug reports, feature requests and contact

If you found any bugs, if you have feature requests or any questions, please, either [file an issue at GitHub](https://github.com/fczbkk/event-simulator/issues) or send me an e-mail at <a href="mailto:riki@fczbkk.com">riki@fczbkk.com</a>.

## License

Event Simulator is published under the [MIT license](https://github.com/fczbkk/event-simulator/blob/master/LICENSE).
npm package: @fczbkk/power-set-generator
Description: Javascript utility that creates generator which yields power set of provided values, from simplest to most complex combinations, in stable order.
Author: Riki Fridrich
Latest version: 1.0.2

# Power Set Generator

Javascript utility that creates generator which yields power set of provided values, from simplest to most complex combinations, in stable order.

For example, providing this list...

```
['a', 'b', 'c']
```

...will produce these combinations, in this order:

```
[ 'a' ]
[ 'b' ]
[ 'c' ]
[ 'a', 'b' ]
[ 'a', 'c' ]
[ 'b', 'c' ]
[ 'a', 'b', 'c' ]
```

## How to use

Install from NPM:

```
npm install @fczbkk/power-set-generator
```

Then include it in your code:

```javascript
import PowerSetGenerator from '@fczbkk/power-set-generator';
```

Then you can use it like any other generator.

In a loop:

```javascript
const generator = PowerSetGenerator(['a', 'b', 'c'])
for (const result of generator) {
    console.log(result)
}
```

Via iteration protocol:

```javascript
const generator = PowerSetGenerator(['a', 'b', 'c'])

let result = generator.next()
while (!result.done) {
  console.log(result.value)
  result = generator.next()
}
```

Or you can generate whole set at once:

```javascript
const generator = PowerSetGenerator(['a', 'b', 'c'])
const result = [...generator]
```
npm package: @fczbkk/uuid4
Description: Generator and validator for Universally Unique Identifier v4 (random).
Author: Riki Fridrich
Latest version: 3.0.0

# UUID4

Generator and validator for Universally Unique Identifier v4 (random).

## How to use

Install the library via NPM:

```shell
npm install @fczbkk/uuid4 --save
```

Then import to your Javascript:

```javascript
import {genrate, validate} from '@fczbkk/uuid4';

// generate UUID4 identifier
const my_id = generate();  // e.g. 4414b07a-d8ae-4763-a7e2-aa66cb0dc3d0

// validate UUID identifier
validate(my_id);  // true
validate('xxx');  // false
```

## Documentation

### validate

Checks if provided `id` is valid UUID4.

**Parameters**

-   `id` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)**

Returns **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)**

### generate

Generates new valid UUID4 identifier.

Returns **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)**

## Bug reports, feature requests and contact

If you found any bugs, if you have feature requests or any questions, please, either [file an issue at GitHub](https://github.com/fczbkk/uuid4/issues) or send me an e-mail at <a href="mailto:riki@fczbkk.com">riki@fczbkk.com</a>.

## License

UUID4 is published under the [MIT license](https://github.com/fczbkk/uuid4/blob/master/LICENSE).
npm package: @fd.xy/test001
Description: Test001
Latest version: 0.0.2

# Test001

@fd.xy/test001

Test001

## API

| 参数名 | 说明 | 必填 | 类型 | 默认值 | 备注 |
| ------ | ---- | ---- | ---- | ------ | ---- |
|        |      |      |      |        |      |
npm package: @fd.xy/test002
Description: Test002
Latest version: 0.0.1

# Test002

@fd.xy/test002

Test002

## API

| 参数名 | 说明 | 必填 | 类型 | 默认值 | 备注 |
| ------ | ---- | ---- | ---- | ------ | ---- |
|        |      |      |      |        |      |
npm package: @fdaciuk/test
Description: Validate CPF Numbers (for Node.js and browsers)
Author: Fernando Daciuk - @fdaciuk
Latest version: 1.0.23

# iscpf

> Validate CPF numbers (for Node.js and browsers)

[![Build Status][build-image]][build-url]
[![License][license-image]][license-url]

## Installation

**NPM:**

```console
npm install --save iscpf
```

**Yarn:**

```console
yarn add iscpf
```

## Usage

Import the lib:

**ES6 Modules:**

```js
import isCpf from 'iscpf'
```

**CommonJS:**

```js
const isCpf = require('iscpf')
```

**Global (window):**

```js
;(function (isCpf) {
  // ...
})(window.isCpf)
```

Don't worry about pontuation:

```js
console.log(isCpf('75300153206')) // true
console.log(isCpf('462.498.462-55')) // true
```

Enjoy ;)

## License

[MIT][license-url] &copy; Fernando Daciuk

[travis-image]: https://github.com/fdaciuk/test/actions/workflows/npm-publish.yml/badge.svg
[travis-url]: https://github.com/fdaciuk/test/actions/workflows/npm-publish.yml
[license-image]: https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square
[license-url]: https://github.com/fdaciuk/licenses/blob/master/MIT-LICENSE.md
npm package: @fdaciuk/use-timer
Description: React Hook to easily create decremental timers
Author: fdaciuk
Latest version: 0.2.1

# use-timer

> React Hook to easily create decremental timers

[![NPM](https://img.shields.io/npm/v/@fdaciuk/use-timer.svg)](https://www.npmjs.com/package/@fdaciuk/use-timer) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Install

```bash
npm install --save @fdaciuk/use-timer
```

If you are using yarn:

```bash
yarn add @fdaciuk/use-timer
```

## Usage

```jsx
import React, { useEffect } from 'react'
import useTimer from '@fdaciuk/use-timer'

function Example () {
  const { minutes, seconds, start } = useTimer('05:00')

  useEffect(() => {
    start()
  }, [start])

  return (
    <div>{minutes}:{seconds}</div>
  )
}
```

## Complete example

```jsx
import React, { useCallback, useEffect } from 'react'
import useTimer from '@fdaciuk/use-timer'

function Example () {
  const {
    minutes,
    seconds,
    start,
    pause,
    finished,
    reset,
    setTimer
  } = useTimer('05:00')

  const handleSubmit = useCallback((e) => {
    e.preventDefault()
    setTimer(e.target.elements.time.value)
  }, [setTimer])

  useEffect(() => {
    finished(() => {
      console.log('finished!')
    })
  }, [finished])

  return (
    <>
      <h1>{minutes}:{seconds}</h1>
      <button onClick={start}>Start!</button>
      <button onClick={pause}>Pause</button>
      <button onClick={reset}>Reset timer</button>

      <form onSubmit={handleSubmit}>
        <input type='text' name='time' />
        <button type='submit'>Set new timer</button>
      </form>

    </>
  )
}
```

## Properties and methods

- **`minutes`** (`String`): show left minutes in 2 or more digits
- **`seconds`** (`String`): show left seconds in 2 or more digits
- **`start`** (`Function`): function that should be executed when the timer is supposed to start counting
- **`pause`** (`Function`): function to pause timer,
- **`finished`** (`Function`): function that receives another function that will be executed when timer finishes counting
- **`reset`** (`Function`): function to reset counter to it's initial time, passed to `useTimer` hook
- **`setTimer`** (`Function`): function to set a new timer

## License

MIT © [fdaciuk](https://github.com/fdaciuk)
npm package: @fdao/swapsdk
Description: 🛠 An SDK for building applications on top of Pancakeswap.
Latest version: 2.3.2

# Pancakeswap SDK

Forked from the [Uniswap SDK](https://github.com/Uniswap/uniswap-v2-sdk/commit/a88048e9c4198a5bdaea00883ca00c8c8e582605).

You can refer to the Uniswap SDK documentation [uniswap.org](https://uniswap.org/docs/v2/SDK/getting-started/).

## Running tests

To run the tests, follow these steps. You must have at least node v10 and [yarn](https://yarnpkg.com/) installed.

First clone the repository:

```sh
git clone https://github.com/pancakeswap/pancakeswap-sdk.git
```

Move into the pancakeswap-sdk working directory

```sh
cd pancakeswap-sdk/
```

Install dependencies

```sh
yarn install
```

Run tests

```sh
yarn test
```

You should see output like the following:

```sh
yarn run v1.22.4
$ tsdx test
 PASS  test/constants.test.ts
 PASS  test/pair.test.ts
 PASS  test/fraction.test.ts
 PASS  test/miscellaneous.test.ts
 PASS  test/entities.test.ts
 PASS  test/trade.test.ts

Test Suites: 1 skipped, 6 passed, 6 of 7 total
Tests:       3 skipped, 82 passed, 85 total
Snapshots:   0 total
Time:        5.091s
Ran all test suites.
✨  Done in 6.61s.
```