open-index/open-npm huggingface dataset:
npm package: @lagregance/react-native-aes-crypto
Description: AES crypto native module for react-native
Author: tectiv3,LaGregance
Latest version: 0.1.1

Fork of [react-native-aes-crypto](https://www.npmjs.com/package/react-native-aes-crypto), the only change is
the `encrypt` and `decrypt` function is based on key length in order to choose the good algorithm (aes-cbc-128, aes-cbc-192, aes-cbc-256)
npm package: @lagunahealth/gql-generator
Description: CLI tool that generates graphql queries and mutations placeholders from graphql schema file
Author: Gabi Rousine
Latest version: 0.0.4

# gql-generator

CLI tool that generates graphql queries and mutations placeholders from graphql schema file.

---

## how does it work

This CLI tool takes in a graphql schema as input and generates every query and mutation with input params with type placeholders and output types.

The queries and mutations are generated into two folders [query, mutation] and for each query/mutation a .gql file is created

gql-generator has three inputs:

- input: path to graphql schema file
- output: path to output folders to
- depth: how deep to generate the type

---

## example

we have the following schema file:

```graphql
input CreateUserInput {
  firstName: String!
}

type Mutation {
  createUser(input: CreateUserInput!): User!
}

type Query {
  users: [User!]!
}

type User {
  id: String!
  username: String!
}
```

---

the output will be:

`query/users.gql`

```graphql
query {
  users {
    id
    username
  }
}
```

`mutation/createUser.gql`

```graphql
mutation {
  createUser (
    input: {
      firstName: String!
    }
  ) {
    id
    username
  }
}
```

---

## How to Use

```bash
# install
npm install -g @lagunahealth/gql-generator

# see the usage
gql-generator --help

gql-generator --input ./schema.gql --output ./ --depth 6
```
npm package: @lagunaisw/use-split-in-chunks
Description: a custom React hook that split an array in chunks
Author: lagunaisw
Latest version: 1.0.0

# @lagunaisw/use-split-in-chunks

> a custom React hook that split an array in chunks

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

## Install

```bash
npm install --save @lagunaisw/use-split-in-chunks
```

## Usage

```tsx
import React from "react";

import { useSplitInChunks } from "@lagunaisw/use-split-in-chunks";

const App = () => {
  const names = ["Ted", "Tracy", "Marshal", "Lily", "Barney", "Robin"];
  const { chunks, setSize } = useSplitInChunks(names, 2);

  const handleMinus = () => {
    setSize(prev => prev - 1);
  };

  const handlePlus = () => {
    setSize(prev => prev + 1);
  };

  return (
    <div>
      <div>
        <p>Change size:</p>
        <button onClick={handleMinus}>-</button>
        <button onClick={handlePlus}>+</button>
      </div>
      {chunks.map((chunk, index) => (
        <ul key={index}>
          {chunk.map((item, index) => (
            <li key={index}>{item}</li>
          ))}
        </ul>
      ))}
    </div>
  );
};
export default App;
```

## License

MIT © [lagunaisw](https://github.com/lagunaisw)

---

This hook is created using [create-react-hook](https://github.com/hermanya/create-react-hook).