open-index/open-npm huggingface dataset:
npm package: @kodemo/util
Description: <p align="center">   <a href="https://kodemo.com">   <img width="1500" alt="github-header" src="https://user-images.githubusercontent.com/629429/213417968-96cffd2a-e6e0-473f-b2f0-343007c0c2ee.png">   </a> </p>
Author: Hakim El Hattab
Latest version: 0.3.2

<p align="center">
  <a href="https://kodemo.com">
  <img width="1500" alt="github-header" src="https://user-images.githubusercontent.com/629429/213417968-96cffd2a-e6e0-473f-b2f0-343007c0c2ee.png">
  </a>
</p>

# Kodemo

[Kodemo](https://kodemo.com) is a brand new format for writing more engaging technical documentation.
- 🔗 Learn more at [kodemo.com](https://komdeo.com)
- 👉 Try a [live demo](https://kodemo.com/docs/what-is-kodemo)
- 👀 Follow [@kodemoapp](https://twitter.com/kodemoapp)

## Kodemo Util

This repo contains the @kodemo/util package which provides shared utils and UI components for the Kodemo player, editor and web app.

### Development

If you want to make changes to the @kodemo/util source here's how:
1. Clone this repository
2. Run `yarn install`
3. Run `yarn dev` to start the development server
4. Open the URL from the dev server output and 💥

--- 
<div align="center">
  MIT licensed | Copyright © 2022-2023 Hakim El Hattab, https://hakim.se
</div>
npm package: @kodemonki/react-child-sequence
Description: React child sequence
Author: kodemonki
Latest version: 2.0.4

# kodemonki/react-child-sequence

Plays a sequence of child image objects. It absolutely positions the remaining images over the top with visibility set to hidden. It then cycles through setting the visibility to visible for the current image.

## Updates

- Changed frameRate prop to fps (frames per second) to make it less strange
- Added className and style object passing to children
- Removed dummy first image
- Added propTypes
- added defaultProps
- Added Es-lint to build
- Cleaned up function binding

## Install

```
$ npm install @kodemonki/react-child-sequence
```

## Props

```
autoPlay : boolean - play sequence
loop : boolean - repeat sequence
yoyo : boolean - replay in reverse
fps : number - frames per second
```

## Usage

```js

import { Sequence } from "@kodemonki/react-child-sequence";

//Images

import image1 from "./PathToImage1.jpg";
import image2 from "./PathToImage2.jpg";
import image3 from "./PathToImage3.jpg";

//Defaults

<Sequence>
  <img src={image1} />
  <img src={image2} />
  <img src={image3} />
</Sequence>

//Optional

<Sequence
    autoPlay={true}
    loop={true}
    yoyo={true}
    fps={29}
    style={...}
    className="className"
>
  <img src={image1} style={...} className="className" alt={"Alt text"}/>
  <img src={image2} style={...} className="className" alt={"Alt text"}/>
  <img src={image3} style={...} className="className" alt={"Alt text"}/>
</Sequence>
```
npm package: @kodepandai/flydrive-gcs
Description: Google Cloud Storage driver for @kodepandai/flydrive
Author: Romain Lanz
Latest version: 3.0.2

<p align="center">
  <img src="https://user-images.githubusercontent.com/2793951/54391096-418f4500-46a4-11e9-8d0c-b00ff7ba4198.png" alt="flydrive">
</p>

<p align="center">
  <a href="https://www.npmjs.com/package/@kodepandai/flydrive-gcs"><img src="https://img.shields.io/npm/dm/@kodepandai/flydrive-gcs.svg?style=flat-square" alt="Download"></a>
  <a href="https://www.npmjs.com/package/@kodepandai/flydrive-gcs"><img src="https://img.shields.io/npm/v/@kodepandai/flydrive-gcs.svg?style=flat-square" alt="Version"></a>
  <a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/npm/l/@kodepandai/flydrive-gcs.svg?style=flat-square" alt="License"></a>
</p>

`flydrive` is a framework-agnostic package which provides a powerful wrapper to manage file Storage in [Node.js](https://nodejs.org).

This package is the driver for Google Cloud Storage.

---

## Getting Started

This package is available in the npm registry.
It can easily be installed with `npm` or `yarn`.

```bash
$ npm i @kodepandai/flydrive-gcs
# or
$ yarn add @kodepandai/flydrive-gcs
```

```javascript
const { GoogleCloudStorage } = require('@kodepandai/flydrive-gcs');
const { StorageManager } = require('@kodepandai/flydrive');
const storage = new StorageManager({
  // ...

  gcs: {
    driver: 'gcs',
    config: {
      keyFilename: process.env.GCS_KEYFILENAME,
      bucket: process.env.GCS_BUCKET,
    },
  },
});

storage.registerDriver('gcs', GoogleCloudStorage);
```
npm package: @kodepandai/flydrive-s3
Description: AWS S3 driver for @kodepandai/flydrive
Author: Romain Lanz
Latest version: 3.0.2

<p align="center">
  <img src="https://user-images.githubusercontent.com/2793951/54391096-418f4500-46a4-11e9-8d0c-b00ff7ba4198.png" alt="flydrive">
</p>

<p align="center">
  <a href="https://www.npmjs.com/package/@kodepandai/flydrive-s3"><img src="https://img.shields.io/npm/dm/@kodepandai/flydrive-s3.svg?style=flat-square" alt="Download"></a>
  <a href="https://www.npmjs.com/package/@kodepandai/flydrive-s3"><img src="https://img.shields.io/npm/v/@kodepandai/flydrive-s3.svg?style=flat-square" alt="Version"></a>
  <a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/npm/l/@kodepandai/flydrive-s3.svg?style=flat-square" alt="License"></a>
</p>

`flydrive` is a framework-agnostic package which provides a powerful wrapper to manage file Storage in [Node.js](https://nodejs.org).

This package is the driver for Amazon S3 and other compatible services.

---

## Getting Started

This package is available in the npm registry.
It can easily be installed with `npm` or `yarn`.

```bash
$ npm i @kodepandai/flydrive-s3
# or
$ yarn add @kodepandai/flydrive-s3
```

```javascript
const { AmazonWebServicesS3Storage } = require('@kodepandai/flydrive-s3');
const { StorageManager } = require('@kodepandai/flydrive');
const storage = new StorageManager({
  // ...

  s3: {
    driver: 's3',
    config: {
      key: process.env.S3_KEY,
      endpoint: process.env.S3_ENDPOINT,
      secret: process.env.S3_SECRET,
      bucket: process.env.S3_BUCKET,
      region: process.env.S3_REGION,
    },
  },
});

storage.registerDriver('s3', AmazonWebServicesS3Storage);
```
npm package: @kodepandai/hash-equals
Description: Timing attack safe string comparison
Author: Runrioter
Latest version: 0.1.0

# hash-equals

[![npm](https://img.shields.io/npm/v/hash-equals.svg)](https://www.npmjs.com/package/hash-equals)
[![npm download](https://img.shields.io/npm/dt/hash-equals)](https://www.npmjs.com/package/hash-equals)
[![Travis branch](https://img.shields.io/travis/killara/hash-equals/master.svg)](https://travis-ci.org/killara/hash-equals)
[![Codecov branch](https://img.shields.io/codecov/c/github/killara/hash-equals/master.svg)](https://codecov.io/github/killara/hash-equals?branch=master)

Timing attack safe string comparison

## Install

`npm i -S hash-equals`

## Usage

```javascript

const hashEquals = require('hash-equals');

const hash1 = '9uPtxDspyriqmxB0E6SPNNGaAtpQezhst7QWkakq';
const hash2 = '9uPtxDspyriqmxB0E6SPNNGaAtpQezhst7QWkakq';

if (hashEquals(hash1, hash2)) {
  console.log('do equal');
} else {
  console.log('do not equal');
}

```

## LICENSE

MIT License

Copyright (c) 2017 killara

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
npm package: @kodepllc/react-scrolllock
Description: Prevent scroll on the body when component is mounted.
Author: Joss Mackison
Latest version: 5.0.2

# React Scroll Lock

Prevent scroll on the `<body />` when a component is mounted.

## Install

```bash
yarn add react-scrolllock
```

## Usage

```js
import ScrollLock, { TouchScrollable } from 'react-scrolllock';

class Modal extends Component {
  state = { lockScroll: false }
  render() {
    return (
      <div>
        ...
        // the lock accepts a single child element, which supports touch-scrolling.
        <ScrollLock>
          <ElementWithScrollableContent>...</ElementWithScrollableContent>
        </ScrollLock>

        // if your app structure doesn't allow wrapping like above, the `TouchScrollable`
        // component is exposed as a named export.
        <ScrollLock />
        <TouchScrollable>
          <ElementWithScrollableContent>...</ElementWithScrollableContent>
        </TouchScrollable>

        // you can also toggle the lock based on some state.
        <ScrollLock isActive={this.state.lockScroll} />
      </div>
    );
  }
}
```

## Props

#### ScrollLock

| Property                       | Description                                                                    |
| :----------------------------- | :----------------------------------------------------------------------------- |
| accountForScrollbars `boolean` | Default: `true` -- Whether or not to replace the scrollbar width when active. |
| isActive `boolean` | Default: `true` -- Whether or not the lock is active. |
| children `element` | Default: `null` -- This element is wrapped internally by the TouchScrollable component. |

#### TouchScrollable

Wrap an element in the `TouchScrollable` component if you need an area that supports scroll on mobile.

This is necessary because the `touchmove` event is explicitly cancelled &mdash; iOS doesn't observe `overflow: hidden;` when applied to the `<body />` element 😢

| Property                 | Description                                    |
| :----------------------- | :--------------------------------------------- |
| children `element` | `ref => element` | **Required** The element that can be scrolled. |