open-index/open-npm huggingface dataset:
npm package: @raulduartep/expo-minimizer
Description: An Expo module to minimize the current app or navigate back to the previous app
Author: raulduartep
Latest version: 1.0.0

# expo-minimizer

An Expo module to minimize the current app or navigate back to the previous app.

## Installation

```bash
npm install @raulduartep/expo-minimizer
```

or

```bash
yarn add @raulduartep/expo-minimizer
```

## Usage

Import the module in your React Native component:

```javascript
import { goBackToPreviousApp, minimizeApp } from "expo-minimizer";
```

### goBackToPreviousApp()

Navigates back to the previously opened app. This is useful when you want to return the user to the app they were using before opening your app.

```javascript
import React from "react";
import { View, Button } from "react-native";
import { goBackToPreviousApp } from "expo-minimizer";

export default function App() {
  const handleGoBack = () => {
    goBackToPreviousApp();
  };

  return (
    <View style={{ flex: 1, justifyContent: "center", alignItems: "center" }}>
      <Button title="Go Back to Previous App" onPress={handleGoBack} />
    </View>
  );
}
```

### minimizeApp()

Minimizes the current app, sending it to the background. This is equivalent to pressing the home button on the device.

```javascript
import React from "react";
import { View, Button } from "react-native";
import { minimizeApp } from "expo-minimizer";

export default function App() {
  const handleMinimize = () => {
    minimizeApp();
  };

  return (
    <View style={{ flex: 1, justifyContent: "center", alignItems: "center" }}>
      <Button title="Minimize App" onPress={handleMinimize} />
    </View>
  );
}
```

### Complete Example

```javascript
import React from "react";
import { View, Button, StyleSheet } from "react-native";
import { goBackToPreviousApp, minimizeApp } from "expo-minimizer";

export default function App() {
  return (
    <View style={styles.container}>
      <Button
        title="Go Back to Previous App"
        onPress={goBackToPreviousApp}
        style={styles.button}
      />

      <Button
        title="Minimize App"
        onPress={minimizeApp}
        style={styles.button}
      />
    </View>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: "center",
    alignItems: "center",
    gap: 20,
  },
  button: {
    marginVertical: 10,
  },
});
```

## API Reference

### Functions

| Function                | Description                                 | Parameters | Returns |
| ----------------------- | ------------------------------------------- | ---------- | ------- |
| `goBackToPreviousApp()` | Navigates back to the previously opened app | None       | `void`  |
| `minimizeApp()`         | Minimizes the current app to the background | None       | `void`  |

## Platform Support

- ✅ iOS
- ✅ Android
- ❌ Web (Not applicable)

## License

MIT

## Issues

If you encounter any issues, please report them on [GitHub Issues](https://github.com/raulduartep/expo-minimizer/issues).

## Author

Created by [raulduartep](https://github.com/raulduartep)
npm package: @rauli/wad
Description: Work with the Doom WAD format
Author: Nik Coughlin
Latest version: 0.0.3

# @rauli/wad

Work with the Doom WAD format.

Fork of [@nrkn/wad](https://www.npmjs.com/package/@nrkn/wad).

## Installation

```sh
$ npm install --save @rauli/wad
```

## Usage

```typescript
import { readFileSync, writeFileSync } from "fs";
import {
  readWad,
  writeWad,
  readLumpData,
  createObjectModel,
} from "@rauli/wad";

// read a wad
const wad = readWad(readFileSync("example.wad"));

// write a wad
const newLump = {
  name: "NEWLUMP",
  data: new Uint8Array([1, 2, 3]),
};

wad.lumps.push(newLump);

writeFileSync("new.wad", writeWad(wad));

// read lump data
const playpalLump = wad.lumps.find((lump) => lump.name === "PLAYPAL");

const palettes = readLumpData(playpalLump.data, "PLAYPAL");

// create an object model
const doomObjectModel = createObjectModel(wad);

const { levels } = doomObjectModel;

const e1m1 = levels.find((level) => level.name === "E1M1");

e1m1.vertexes.forEach((v) => console.log(v.x, v.y));

// etc.
```

## todo

- `writeLumpData`
- `createWad( doomObjectModel )`
- test data is megabytes, create a wad that has all lumps needed for testing
  but isn't huge

## license

MIT License

Copyright (c) 2019 Nik Coughlin

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: @raullaprida/zksync
Description: **zkSync** is a scaling and privacy engine for Ethereum. Its current functionality scope includes low gas transfers of ETH and ERC20 tokens in the Ethereum network.
Latest version: 0.11.6

# JavaScript SDK for zkSync

**zkSync** is a scaling and privacy engine for Ethereum. Its current functionality scope includes low gas transfers of
ETH and ERC20 tokens in the Ethereum network.

This document is a description of the JS library that can be used to interact with zkSync.

## Usage

Full reference on how to use the library can be found [here](https://zksync.io/api/sdk/js/).

## Changelog

The changelog of the zksync.js is avaliable
[here](https://github.com/matter-labs/zksync/blob/master/changelog/js-sdk.md).
npm package: @raullekuna/luhn-digits
Description: [Online example](https://stackblitz.com/edit/vitejs-vite-pqdpuw)
Author: Rail Batyrshin
Latest version: 1.0.3

### [Luhn Algorithm](https://en.wikipedia.org/wiki/Luhn_algorithm) Toolkit: Validate, Generate, and Calculate Checksums

[Online example](https://stackblitz.com/edit/vitejs-vite-pqdpuw)
npm package: @raulmar/random-messages
Description: Random messages generator
Author: Raul Mar
Latest version: 1.0.1

# Random Messages

This script says hi to a random person every time. If you want your name in the array, make a pull request changing the index.js

## Install

```npm
npm install -g random-msg
```

# Usage

```bash
random-msg
```

# Contributing
If someone wants to add or improve something, I invite you to collaborate directly in this repository: [random-msg](https://github.com/realraulmar/randomMsg)

# License
random-msg is released under the [MIT License](https://opensource.org/licenses/MIT).
npm package: @raulnicoletti/cra-template-typescript
Description: The base TypeScript template for Create React Extension.
Latest version: 0.3.0

# cra-template-typescript

This is the base TypeScript template for [Create React Extension](https://github.com/RaulNicoletti/create-react-extension).

To use this template, add `--template typescript` when creating a new extension.

For example:

```sh
npx create-react-extension my-extension --template typescript
```
npm package: @raulpesilva/react-global-state
Description: provide global state to aplication
Author: RaulPeSilva
Latest version: 0.1.5
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# react-global-state

Easy way to provide global state to reactJS and React Native applications

## Installation

```sh
npm install @raulpesilva/react-global-state
```
or

```sh
yarn add @raulpesilva/react-global-state
```

## Usage

```js
import * as React from 'react';

import { StyleSheet, View, Text, Button } from 'react-native';
import useGlobalState, { GlobalStateProvider } from '@raulpesilva/react-global-state';

const Foo: React.FC = () => {
  const [value, setValue] = useGlobalState('value', 0);

  return (
    <View style={styles.container}>
      <Button onPress={() => { setValue(value + 1) }} title=" + " />
      <Text>resultado é : {value}</Text>
      <Button onPress={() => { setValue(value > 0 ? value - 1 : 0) }} title=" - " />
    </View>
  );
};
const Bar: React.FC = () => {
  const [value] = useGlobalState('value');

  return (
    <View style={styles.container}>
      <Text>resultado é : {value}</Text>
    </View>
  );
};

export default function App() {
  return (
    <GlobalStateProvider>
      <View style={styles.container}>
        <Foo />
        <Bar />
      </View>
    </GlobalStateProvider>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    alignItems: 'center',
    justifyContent: 'center',
  },
});

```

## Contributing

See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.

## License

MIT
npm package: @raulpesilva/swf
Description: simple manager api fetch
Author: raulpesilva
Latest version: 1.0.4

# SWF

[![NPM](https://img.shields.io/npm/v/@raulpesilva/swf.svg)](https://www.npmjs.com/package/@raulpesilva/swf)
![NPM](https://img.shields.io/npm/l/@raulpesilva/swf)
![node-current](https://img.shields.io/node/v/@raulpesilva/swf)
![npm bundle size](https://img.shields.io/bundlephobia/min/@raulpesilva/swf)

simple manager api fetch inspired by SWR

## Installation

```sh
npm install @raulpesilva/swf
```

or

```sh
yarn add @raulpesilva/swf
```

## TODO

- [ ] - Examples
- [ ] - Tests
- [ ] - Doc

## Usage

```js
import useSWF from '@raulpesilva/swf'


type TodoProps = {
  id: number;
  userId: number;
  title: string;
  completed: boolean
}

const instanceGet = async (url: Url) => await fetch(url, { method: 'get' }).then(data => data.json())

const Foo = () => {
  const { loading, send, error, result } = useSWF<TodoProps[]>('https://jsonplaceholder.typicode.com/todos', instanceGet);

  useEffect(() => {
    send();
  }, [send]);

  if (loading) return <div>loading...</div>;
  if (error) return <div>{JSON.stringify(error)}</div>;
  if (!result?.length) return <div>Empty</div>;
  return (
    <div>
      {result.map((todo) => {
        return (
          <div key={todo.id}>
            <p>{todo.title}</p>
            <input type="checkbox" checked={todo.completed} />
          </div>
        );
      })}
    </div>
  );
};

```

or

```js
import useSWF from '@raulpesilva/swf'


type TodoProps = {
  id: number;
  userId: number;
  title: string;
  completed: boolean
}

const instanceGet = async (url: Url) => await fetch(url, { method: 'get' }).then(data => data.json())

const Foo = () => {
  const { loading, send, error, result, preFetch } = useSWF<TodoProps[]>('https://jsonplaceholder.typicode.com/todos', instanceGet);

  useEffect(() => {
    preFetch();
  }, [preFetch]);

  const handleSendRequest = () => {
    send();
  };

  if (loading) return <div>loading...</div>;
  if (error) return <div>{JSON.stringify(error)}</div>;
  if (!result?.length)
    return (
      <div>
        <h1>Empty</h1>
        <button onClick={handleSendRequest}>Request todos</button>
      </div>
    );
  return (
    <div>
      {result.map((todo) => {
        return (
          <div key={todo.id}>
            <p>{todo.title}</p>
            <input type="checkbox" checked={todo.completed} />
          </div>
        );
      })}
    </div>
  );
};

```

## Contributing

See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.

## License

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