open-index/open-npm huggingface dataset:
npm package: @sidiousware/dontpanic
Description: I see that you are having a difficult time, let me help you.
Author: sidiousvic
Latest version: 1.3.1

# 🚯 dontpanic

[![npm package][npm-img]][npm-url]
[![Build Status][build-img]][build-url]
[![Code Coverage][codecov-img]][codecov-url]
[![Commitizen Friendly][commitizen-img]][commitizen-url]
[![Semantic Release][semantic-release-img]][semantic-release-url]

## Introduction

Humans are known to panic. This is widely considered bad design.

```ts
function eat(f: string) {
  if (f === '🌯') ...
  else throw; // panic
}
```

Panic is not useful™. What's useful is a **thorough assessment of the circumstances**. `dontpanic` brings you _blazingly steadfast_ abstractions that help you recover from failure and guide your code to success.

```ts
DontPanic(eat)('🌯').onSuccess(sleep).onFailure(getPizza); // 🍕 Don't panic
```

## Principles

### 🚯 No littering

Unhandled `throw`s crash your program and send it into an unrecoverable state.

```ts
throw new Error('Invalid input'); // 🚯 Crash risk

return Failed('Invalid input'); // 🛣  No crash risk
```

99.9% of the time there is no need to panic.

### ⚠️ Explicit content

Throwable functions do not encode potential in their type signature.

```ts
const parsed = JSON.stringify(input); // ⚠️ Number, may crash

DontPanic(JSON.stringify)(input); // ✅  Outcome<string, Error>
```

Explicit is better than implicit.

### 🥞 Flat as a pancake

Try/catch creates new execution scopes.

```ts
try {
  const parsed = JSON.parse(input);
  try {
    const validated = validateInput(parsed);
    register(validated);
  } catch (e) {
    handleValidationError(e);
  }
} catch (e) {
  handleParsingError(e); // 🪹 Far away from home
}

DontPanic(JSON.parse)(input) // 🥞
  .onFailure(handleParsingError)
  .onSuccess(validateInput)
  .onFailure(handleValidationError)
  .onSuccess(register);
```

Flatten your error handling.

## Install

```bash
npm install @sidiousware/dontpanic
```

[build-img]: https://github.com/sidiousvic/dontpanic/actions/workflows/release.yml/badge.svg?branch=main
[build-url]: https://github.com/sidiousvic/dontpanic/actions/workflows/release.yml?branch=main
[npm-img]: https://img.shields.io/npm/v/dontpanic
[npm-url]: https://www.npmjs.com/package/dontpanic
[codecov-img]: https://codecov.io/gh/sidiousvic/dontpanic/branch/prod/graph/badge.svg
[codecov-url]: https://codecov.io/gh/sidiousvic/dontpanic
[semantic-release-img]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg
[semantic-release-url]: https://github.com/semantic-release/semantic-release
[commitizen-img]: https://img.shields.io/badge/commitizen-friendly-brightgreen.svg
[commitizen-url]: http://commitizen.github.io/cz-cli/
npm package: @sidiousware/motor
Description: ### A no-frills finite state machine module.
Author: sidiousvic
Latest version: 1.1.0

# ⚙ Motor

### A no-frills finite state machine module.

<br/>

[![Deno CI](https://github.com/sidiousvic/motor/workflows/Deno%20CI/badge.svg)](https://github.com/sidiousvic/motor/actions)
[![GitHub](https://img.shields.io/github/license/sidiousvic/motor)](https://github.com/sidiousvic/motor/blob/prod/LICENSE)
[![Contributors](https://img.shields.io/github/contributors/sidiousvic/motor)](https://github.com/sidiousvic/motor/graphs/contributors)
[![TypeScript](https://img.shields.io/badge/types-TypeScript-blue)](https://github.com/sidiousvic/motor)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)

<br/>
<img src="https://raw.githubusercontent.com/sidiousvic/motor/prod/assets/MOTOR_FSM_TOGGLE_DIAGRAM.png">
<br/>

## Start the motor

```ts
import { motor } from "https://deno.land/x/motor/mod.ts";

type Gears = "stopped" | "paused" | "playing" | "loading";

type Events = "SELECT" | "LOAD" | "PLAY" | "PAUSE" | "STOP";

const musicPlayerMotor: MotorSpec<Gears, Events> = {
  gear: "stopped",
  transmission: {
    stopped: {
      on: { LOAD: "loading" },
    },
    paused: {
      on: { PLAY: "playing", STOP: "stopped" },
    },
    loading: {
      on: { PLAY: "playing", STOP: "stopped" },
    },
    playing: {
      on: { PAUSE: "paused", STOP: "stopped" },
    },
  },
};

const { fire, gear } = motor(musicPlayer);

✅ assertEquals(gear(), "stopped");

fire("LOAD");

✅ assertEquals(gear(), "loading");

fire("PLAY");

✅ assertEquals(gear(), "playing");

fire("PAUSE");

✅ assertEquals(gear(), "paused");

fire("STOP");

✅ assertEquals(gear(), "stopped");
```

## Hook to changes in state

```ts
let counter = 0;

const count = () => (counter += 1);

const { fire, gear, hook } = motor(musicPlayerMotor);

✅ assertEquals(gear(), "stopped");

hook(count);

fire("LOAD");

✅ assertEquals(counter, 1);

fire("PLAY");

✅ assertEquals(counter, 2);

fire("STOP");

✅ assertEquals(counter, 3);
```

### 🧰 Development

Run tests:

```bash
deno test --allow-read
```

## 📄 License

MIT
npm package: @sidiropoulos/example-app
Description: This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
Author: Harris Sidiropoulos
Latest version: 1.0.1

# Getting Started with Create React App

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Available Scripts

In the project directory, you can run:

### `yarn start`

Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will reload if you make edits.\
You will also see any lint errors in the console.

### `yarn test`

Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `yarn build`

Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### `yarn eject`

**Note: this is a one-way operation. Once you `eject`, you can’t go back!**

If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).
npm package: @sidiropoulos/shared-components
Description: A skeleton to create your own React component library using Rollup, TypeScript, Sass and Storybook
Author: Harris Sidiropoulos
Latest version: 1.0.1

# React Component Library

## Development

### Testing

```
npm run test
```

### Building

```
npm run build
```

### Storybook

To run a live-reload Storybook server on your local machine:

```
npm run storybook
```

To export your Storybook as static files:

```
npm run storybook:export
```
npm package: @sidneys/electron-localsetup
Description: Install and launch Electron app packages using the default OS program folder – '/Applications' on macOS, 'C:\Program Files' on Windows and '/usr/local' on Linux
Author: sidneys
Latest version: 1.136.0
Deprecated: false

# electron-localsetup

Install and launch Electron app packages using the default OS program folder – '/Applications' on macOS, 'C:\\Program Files' on Windows and '/usr/local' on Linux
npm package: @sido08/log-easy
Description: `log-easy` é uma biblioteca para facilitar a aplicação de cores e estilos no console do Node.js. Com `log-easy`, você pode adicionar cores e tags aos logs de maneira simples e intuitiva.
Author: Ronaldo Maciel Campos Junior
Latest version: 1.0.2

# log-easy

`log-easy` é uma biblioteca para facilitar a aplicação de cores e estilos no console do Node.js. Com `log-easy`, você pode adicionar cores e tags aos logs de maneira simples e intuitiva.

## Instalação

Para instalar o `log-easy`, use o npm:

```
npm install log-easy
```

## Uso

A biblioteca exporta duas coisas principais:
- `easyLog`: uma função para registrar textos coloridos no console.
- `colors`: um objeto que contém códigos de cores e estilos que você pode usar.

### Importar

Para usar a biblioteca, importe `easyLog` e `colors` no seu código:

```
import { easyLog, colors } from 'log-easy';
```

### Exemplo de Uso

Aqui estão alguns exemplos de como usar a função `easyLog` para registrar mensagens coloridas no console:

```
import { easyLog, colors } from 'log-easy';

// Registra uma mensagem em vermelho
easyLog('Hello World', 'red');

// Registra uma mensagem em azul com a tag 'INFO'
easyLog('Hello World', 'blue', 'INFO');

// Registra uma mensagem sem cor se a cor for inválida
easyLog('Hello World', 'invalidColor' as keyof typeof colors.fg);

// Registra uma mensagem sem cor e sem tag se a cor for inválida
easyLog('Hello World', 'invalidColor' as keyof typeof colors.fg, 'WARNING');
```

### Parâmetros

- `text` (string): O texto que você deseja registrar.
- `color` (keyof typeof colors.fg): A cor que você deseja aplicar ao texto. As opções incluem `black`, `red`, `green`, `yellow`, `blue`, `magenta`, `cyan`, `white`, `gray`.
- `tag` (string, opcional): Uma tag opcional que será adicionada antes do texto.

### Cores e Estilos

O objeto `colors` inclui os seguintes estilos e cores:

#### Estilos

- `reset`: \x1b[0m
- `bright`: \x1b[1m
- `dim`: \x1b[2m
- `underline`: \x1b[4m
- `blink`: \x1b[5m
- `reverse`: \x1b[7m
- `hidden`: \x1b[8m

#### Cores de Texto (`fg`)

- `black`: \x1b[30m
- `red`: \x1b[31m
- `green`: \x1b[32m
- `yellow`: \x1b[33m
- `blue`: \x1b[34m
- `magenta`: \x1b[35m
- `cyan`: \x1b[36m
- `white`: \x1b[37m
- `gray`: \x1b[90m

#### Cores de Fundo (`bg`)

- `black`: \x1b[40m
- `red`: \x1b[41m
- `green`: \x1b[42m
- `yellow`: \x1b[43m
- `blue`: \x1b[44m
- `magenta`: \x1b[45m
- `cyan`: \x1b[46m
- `white`: \x1b[47m

## Testes

Para rodar os testes, use:

```
npm test
```

## Contribuição

Sinta-se à vontade para contribuir para o `log-easy`! Abra uma issue ou envie um pull request.

## Licença

Distribuído sob a licença MIT. Veja `LICENSE` para mais informações.
npm package: @sidoshi/once
Description: > Utilites for one-time-password generation and other related things.
Latest version: 0.1.0

# Once
> Utilites for one-time-password generation and other related things.

## Credits
This library is inspired from [speakeasy](https://github.com/speakeasyjs/speakeasy).

## Licence
MIT © [Siddharth Doshi](https://sid.sh)
npm package: @sidoshi/profile
Description: Siddharth Doshi's Public Profile
Author: Siddharth Doshi
Latest version: 0.1.3

# @sidoshi/profile

[![Build Status](https://travis-ci.org/doshisid/profile.svg?branch=master)](https://travis-ci.org/doshisid/profile) [![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/doshisid/profile/issues) [![HitCount](http://hits.dwyl.io/doshisid/profile.svg)](http://hits.dwyl.io/doshisid/profile) [![npm](https://img.shields.io/npm/v/@sidoshi/profile.svg)](https://www.npmjs.com/package/@sidoshi/profile) [![npm](https://img.shields.io/npm/l/@sidoshi/profile.svg)](https://www.npmjs.com/package/@sidoshi/profile)

> Siddharth Doshi's Public Profile

This package exports my public profile in json.

## Install

```bash
npm install --save @sidoshi/profile
```

## Usage

```js
import profile from '@sidoshi/profile' // JS object
```

## License

MIT © [Siddharth Doshi](https://sid.sh)