open-index/open-npm huggingface dataset:
npm package: @kitce/react-use-fadeout-scroll
Description: React hook to apply fadeout effect to scroll container
Author: kitce
Latest version: 2.1.1

# react-use-fadeout-scroll
React hook to apply fadeout effect to scroll container

## Install

```bash
pnpm add @kitce/react-use-fadeout-scroll
```

## Documentation

[Documentation](https://kitce.github.io/react-use-fadeout-scroll/)

## Example
```tsx
import useFadeoutScroll from '@kitce/react-use-fadeout-scroll';

const ScrollContainer = () => {
  const [ref, style] = useFadeoutScroll<HTMLDivElement>({ yFadingRate: 0.3 });
  return (
    <div ref={ref} style={style}>
      {/* very long content */}
    </div>
  );
};
```

## License
MIT License
npm package: @kitchenmate/cordova-plugin-stripe-google-pay
Description: Cordova plugin for Stripe - Google Pay
Author: Asanga Dev
Latest version: 0.0.8

# cordova-plugin-stripe-google-pay

> Cordova plugin for Stripe - Goole Pay integration

## Notes

This plugin only supports Android.

This plugin will add these dependencies to your build.gradle file:

    com.stripe:stripe-android:6.1.2
    com.google.android.gms:play-services-wallet:16.0.0
    com.android.support:support-v4:27.0.2
    com.android.support:appcompat-v7:24.1.1

## Installation

    cordova plugin add cordova-plugin-stripe-google-pay

## Quick Example

Run below on onDeviceReady function

```javascript
sgap.setKey('pk_test_Ldy7TLYtmnsv1VrI4ULriWSd').then(function(output) {
  sgap.isReadyToPay().then(function() {
    sgap.requestPayment(1000, 'AUD').then(function(token) {
      alert(token);
    }).catch(function(err) {
      alert(err);
    });
  }).catch(function(err) {
    alert(err);
  });
}).catch(function(err) {
  alert(err);
});
```

## Usage

This plugin puts the functions into `window.sgap`.
All functions return a promise.

```javascript
sgap.setKey('pk_test_d34db33f')
```

-   Used to set the Stripe publishable key
-   Required to request payments
-   If test key is provided, then payments are completed in `ENVIRONMENT_TEST` mode, and `ENVIRONMENT_PRODUCTION` mode if the live key is given
-   If you attempt any of the below functions without calling this first, they will throw an error

```javascript
sgap.isReadyToPay()
```

-   Used to test if the appropriate payment method is available on the current device.
-   Resolves if appropriate payment method is available
-   Rejects if not, or if it encounters an error

```javascript
sgap.requestPayment(totalPrice, currency)
```

-   Initiates the payment journey for the user to complete.
-   `totalPrice` must be a string representation of the total price - e.g. for £10.78, it would be `10.78`
-   `currency` must be a valid ISO 4217 currency code for the transaction
-   Resolves when the journey is complete, with the stripe token
-   Rejects if an error occurs

## Switch to PRODUCTION

You need to request for production access before test on production environment. Carefully go through the [CHECK LIST](https://developers.google.com/pay/api/android/guides/test-and-deploy/integration-checklist) mentioned in this [LINK](https://developers.google.com/pay/api/android/guides/test-and-deploy/integration-checklist) and [REQUEST PRODUCTION ACCESS](https://services.google.com/fb/forms/googlepayAPIenable)

## Why this error after switching to PRODUCTION?

#### Request Failed

Make sure you check the APK on a real device and not on an emulator.


## License

MIT
npm package: @kitchenmate/sequelize-cli-coffee
Description: Forked: The Sequelize CLI (with support for coffeescript)
Latest version: 6.2.0

# sequelize/cli [![npm version](https://badge.fury.io/js/sequelize-cli.svg)](https://npmjs.com/package/sequelize-cli) [![Build Status](https://travis-ci.org/sequelize/cli.svg?branch=master)](https://travis-ci.org/sequelize/cli)

The [Sequelize](https://sequelize.org) Command Line Interface (CLI)

## Table of Contents

- [Installation](#installation)
- [Contributing](#contributing)
- [Documentation](#documentation)

## Installation

Make sure you have [Sequelize](https://sequelize.org) installed. Then install the Sequelize CLI to be used in your project with

```bash
npm install --save-dev sequelize-cli
```

And then you should be able to run the CLI with

```bash
npx sequelize --help
```

### Usage

```bash
Sequelize CLI [Node: 10.21.0, CLI: 6.0.0, ORM: 6.1.0]

sequelize <command>

Commands:
  sequelize db:migrate                        Run pending migrations
  sequelize db:migrate:schema:timestamps:add  Update migration table to have timestamps
  sequelize db:migrate:status                 List the status of all migrations
  sequelize db:migrate:undo                   Reverts a migration
  sequelize db:migrate:undo:all               Revert all migrations ran
  sequelize db:seed                           Run specified seeder
  sequelize db:seed:undo                      Deletes data from the database
  sequelize db:seed:all                       Run every seeder
  sequelize db:seed:undo:all                  Deletes data from the database
  sequelize db:create                         Create database specified by configuration
  sequelize db:drop                           Drop database specified by configuration
  sequelize init                              Initializes project
  sequelize init:config                       Initializes configuration
  sequelize init:migrations                   Initializes migrations
  sequelize init:models                       Initializes models
  sequelize init:seeders                      Initializes seeders
  sequelize migration:generate                Generates a new migration file      [aliases: migration:create]
  sequelize model:generate                    Generates a model and its migration [aliases: model:create]
  sequelize seed:generate                     Generates a new seed file           [aliases: seed:create]

Options:
  --version  Show version number                                                  [boolean]
  --help     Show help                                                            [boolean]

Please specify a command
```

## Contributing

All contributions are accepted as a PR.

- You can file issues by submitting a PR (with test) as a test case.
- Implement new feature by submitting a PR
- Improve documentation by submitting PR to [Sequelize](https://github.com/sequelize/sequelize)

Please read the [contributing guidelines](CONTRIBUTING.md).

## Documentation

- [Migrations Documentation](https://sequelize.org/master/manual/migrations.html)
- [CLI Options](docs/README.md)
- [Frequently Asked Questions](docs/FAQ.md)
npm package: @kitchenmate/swc-node-register
Description: SWC node register
Author: LongYinan
Latest version: 1.4.3

# `@swc-node/register`

<a href="https://npmcharts.com/compare/@swc-node/register?minimal=true"><img src="https://img.shields.io/npm/dm/@swc-node/register.svg?sanitize=true" alt="Downloads" /></a>

> 🚀 Help me to become a full-time open-source developer by [sponsoring me on Github](https://github.com/sponsors/Brooooooklyn)

## Usage

```ts
const register = require('@swc-node/register')

register({
  ...
})
```

### CLI

```
node -r @swc-node/register index.ts
```

### Mocha

```
mocha --require @swc-node/register --watch-extensions ts,tsx "test/**/*.{ts,tsx}" [...args]
```

### ava

```json
// package.json

{
  "ava": {
    "extensions": ["ts", "tsx"],
    "require": ["@swc-node/register"],
    "files": ["packages/**/*.spec.{ts,tsx}"]
  }
}
```

## Read `tsconfig.json`

set `SWC_NODE_PROJECT` or `TS_NODE_PROJECT` env:

```bash
SWC_NODE_PROJECT=./tsconfig.test.json mocha --require @swc-node/register --watch-extensions ts,tsx "test/**/*.{ts,tsx}" [...args]
```

`@swc-node/register` respect the following option in `tsconfig`:

### `extends`

`@swc-node/register` respect the extends key in `tsconfig.json`, and use the **merged** values.

### `compilerOptions.target`

```ts
switch (target) {
  case ts.ScriptTarget.ES3:
    return 'es3'
  case ts.ScriptTarget.ES5:
    return 'es5'
  case ts.ScriptTarget.ES2015:
    return 'es2015'
  case ts.ScriptTarget.ES2016:
    return 'es2016'
  case ts.ScriptTarget.ES2017:
    return 'es2017'
  case ts.ScriptTarget.ES2018:
    return 'es2018'
  case ts.ScriptTarget.ES2019:
    return 'es2019'
  case ts.ScriptTarget.ES2020:
  case ts.ScriptTarget.ESNext:
  case ts.ScriptTarget.Latest:
    return 'es2020'
  case ts.ScriptTarget.JSON:
    return 'es5'
}
```

### `compilerOptions.jsx`

If `filename` endsWith `.jsx` or `.tsx`, always set the `jsx: true` in `swc config` regards the `jsx` option in `tsconfig`.
If `filename` not endsWith `.jsx` or `.tsx`, set the `jsx: Boolean(tsconfig.compilerOptions.jsx)` in `swc config`.

### compilerOptions.module

> notes, if `compilerOptions.module` higher than `es2020`, the `dynamicImport` in `swc config` will be set to `true`.

```ts
switch (moduleKind) {
  case ts.ModuleKind.CommonJS:
    return 'commonjs'
  case ts.ModuleKind.UMD:
    return 'umd'
  case ts.ModuleKind.AMD:
    return 'amd'
  case ts.ModuleKind.ES2015:
  case ts.ModuleKind.ES2020:
  case ts.ModuleKind.ESNext:
  case ts.ModuleKind.None:
    return 'es6'
  case ts.ModuleKind.System:
    throw new TypeError('Do not support system kind module')
}
```

### compilerOptions.experimentalDecorators

Respect the boolean value in `tsconfig`.

### compilerOptions.emitDecoratorMetadata

Respect the boolean value in `tsconfig`.

### compilerOptions.esModuleInterop

Respect the boolean value in `tsconfig`.

### include/exclude

`TypeScript` gives files list to `@swc-node/register`, if parse `tsconfig.json` failed or files list empty, `@swc-node/register` will transform all files which were required.

And if failed to parse `tsconfig.json`, `@swc-node/register` will print warning which contains failed reason.