open-index/open-npm huggingface dataset:
npm package: @izzqz/env
Description: [![tests](https://github.com/izzqz/env/actions/workflows/test.yml/badge.svg)](https://github.com/izzqz/env/actions/workflows/test.yml) [![JSR](https://jsr.io/badges/@izzqz/env)](https://jsr.io/@izzqz/env) ![NPM Version](https://img.shields.io/npm/v/%40izz
Latest version: 0.1.32

# env

[![tests](https://github.com/izzqz/env/actions/workflows/test.yml/badge.svg)](https://github.com/izzqz/env/actions/workflows/test.yml)
[![JSR](https://jsr.io/badges/@izzqz/env)](https://jsr.io/@izzqz/env)
![NPM Version](https://img.shields.io/npm/v/%40izzqz%2Fenv)

Minimal environment variable library for any js runtime
npm package: @izzqz/prettier
Description: izzqz's prettier config
Author: izzqz
Latest version: 1.0.0

# `@izzqz/prettier`

> izzqz's personal [Prettier](https://prettier.io) config.

## Usage

**Install**:

```bash
npm install --dev @izzqz/prettier
```

**Edit `package.json`**:

```jsonc
{
  // ...
  "prettier": "@izzqz/prettier"
}
```
npm package: @j-arens/option
Description: A basic port of the Option type from Rust
Author: Josh Arens
Latest version: 1.0.1

# Option

This is a partial port of the [Option](https://doc.rust-lang.org/std/option/) type from [Rust](https://www.rust-lang.org/). Most of the functionality is here but I skipped porting some of the more Rust-specific methods that don't really make sense in a Javascript context.

## Usage

Basic usage is the same as in Rust.

```ts
import { Option, some, none } from '@j-arens/option';

// basic setting and getting of values
const greeting = some('hey there');
const name = none();

console.log(greeting.unwrap()); // logs 'hey there'
console.log(name.unwrap()); // throws an OptionError
console.log(name.unwrapOr('unknown')); // logs 'unknown'

// function that returns an Option<number>
function divide(x: number, y: number): Option<number> {
  if (y === 0) {
    return none();
  }
  return some(x / y);
}

divide(1, 0); // None
divide(1, 1); // Some(1)
```

## Testing

```
$ npm run test
```

## Linting

```
$ npm run lint
```

## Building

```
$ npm run build
```
npm package: @j-arens/result
Description: A basic port of the Result type from Rust
Author: Josh Arens
Latest version: 1.0.0

# Result

This is a partial port of the [Result](https://doc.rust-lang.org/std/result/) type from [Rust](https://www.rust-lang.org/). Most of the functionality is here but I skipped porting some of the more Rust-specific methods that don't really make sense in a Javascript context.

## Usage

Basic usage is the same as in Rust.

```ts
import { Result, ok, err } from '@j-arens/result';

// basic setting and getting of values
const greeting: Result<string, string> = ok('hey there');
const name = err('');

console.log(greeting.unwrap()); // logs 'hey there'
console.log(name.unwrap()); // throws an ResultError
console.log(name.unwrapOr('unknown')); // logs 'unknown'

// function that returns a Result<number, string>
function divide(x: number, y: number): Result<number, string> {
  if (y === 0) {
    return err('cannot divide by zero');
  }
  return ok(x / y);
}

divide(1, 0); // Err('cannot divide by zero')
divide(1, 1); // Ok(1)
```

## Testing

```
$ npm run test
```

## Linting

```
$ npm run lint
```

## Building

```
$ npm run build
```