open-index/open-npm huggingface dataset:
npm package: @nidomiro/relation-tuple-parser-ory-keto
Description: [![npm version](https://badge.fury.io/js/@nidomiro%2Frelation-tuple-parser-ory-keto.svg)](https://www.npmjs.com/package/@nidomiro/relation-tuple-parser-ory-keto)
Author: Niclas Roßberger
Latest version: 0.4.0

# @nidomiro/relation-tuple-parser-ory-keto

[![npm version](https://badge.fury.io/js/@nidomiro%2Frelation-tuple-parser-ory-keto.svg)](https://www.npmjs.com/package/@nidomiro/relation-tuple-parser-ory-keto)

This library is the same as `@nidomiro/relation-tuple-parser` but uses grpc types of [ory keto](https://www.ory.sh/docs/keto/).

## Usage

```ts
import { parseRelationTuple } from '@nidomiro/relation-tuple-parser'
import { KetoGrpcConverter, KetoHttpConverter } from '@nidomiro/relation-tuple-parser-ory-keto'

const result = parseRelationTuple('sharedFiles:a.txt#access@(dirs:b#access)').unwrapOrThrow()

const grpcRelationTuple = KetoGrpcConverter.createRelationTuple(result)
const grpcCheckRequest = KetoGrpcConverter.createCheckRequest(result)
const httpRelationTuple = KetoHttpConverter.createRelationTuple(result)
const httpRelationQuery = KetoHttpConverter.createRelationQuery(result)
```

## With replacements

It is also possible to parse the Relation tuple in a structure where different placeholders can be replaced.
This is especially useful if you define a Guard via Decorators but require som dynamic replacements e.g. for the id of
the current user.

### Usage

```ts
import { parseRelationTupleWithReplacements } from '@nidomiro/relation-tuple-parser'
import { KetoGrpcConverter } from '@nidomiro/relation-tuple-parser-ory-keto'

const result = parseRelationTupleWithReplacements(({ userId }) => `groups:admin#member@${userId}`)

/**
 * Contains the "Template" of the Relation tuple with the replacements defined above.
 * Calculate this once and use it on every evaluation.
 */
const valueWithreplacements = result.unwrapOrThrow()

/**
 * Execute this at evaluation time (e.g. every incomming Request) to get the actual ory Relation tuple send to keto via grpc.
 */
const grpcCheckRequest = KetoGrpcConverter.createCheckRequest(valueWithreplacements, {
	userId: 'my_user_id',
})
```

## Development

### Building

Run `nx build typescript-ory-keto` to build the library.

### Running unit tests

Run `nx test typescript-ory-keto` to execute the unit tests.

### Publish

Make sure you are logged into npm.

Run `nx publish typescript-ory-keto --tag latest --ver x.x.x` to publish to npm.
npm package: @nidomiro/ts-type-utils
Description: [![npm version](https://badge.fury.io/js/@nidomiro%2Fts-type-utils.svg)](https://www.npmjs.com/package/@nidomiro/ts-type-utils)
Author: Niclas Roßberger
Latest version: 0.2.0
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# ts-type-utils

[![npm version](https://badge.fury.io/js/@nidomiro%2Fts-type-utils.svg)](https://www.npmjs.com/package/@nidomiro/ts-type-utils)

A library containing utilities for typescript.

## Content

-   [ModifyTypeOfProperty](#ModifyTypeOfProperty)
-   [isNonNilObject](#isNonNilObject)

### ModifyTypeOfProperty

Modifies the type of **existing** properties.

Correct:

```typescript
type A = {
	a: string
	b: string
}
type ModA = ModifyTypeOfProperty<A, { b: number }>
/*
ModA = {
    a: string,
	b: number,
}
 */
```

Incorrect:

```typescript
type A = {
	a: string
	b: string
}
type ModA = ModifyTypeOfProperty<A, { c: number }>
/*
Error:
TS2559: Type '{ c: number; }' has no properties in common with type 'Partial{ a: unknown; b: unknown; }>'.
 */
```

### isNonNilObject

Checks if value is of type 'object' and not (null or undefined)

```typescript
const a: {} | null | undefined = {}
if (isNonNilObject(a)) {
	// type: a: Record<string, unknown>
}
```

## Development

### Building

Run `nx build ts-type-utils` to build the library.

### Running unit tests

Run `nx test ts-type-utils` to execute the unit tests.

### Publish

Make sure you are logged into npm.

Run `nx publish ts-type-utils --tag latest --ver x.x.x` to publish to npm.
npm package: @nidreim/conversor-kg-lb
Description: Este es un conversor de kilogramos a libras y de libras a kilogramos para el proyecto de fundamentos de javascript de platzi
Author: Mateo Gomez
Latest version: 0.1.1

# Conversor

Este es un conversor de kilogramos a libras y de libras a kilogramos para el [curso de fundamentos de javascript](https://platzi.com/js) de [platzi](https://platzi.com)

## install

```
npm i @nidreim/conversor-kg-lb
```
## Uso

```
import conversor from "conversor"

El primer parametro es la cantidad a convertir y el segundo parametro es la unidad del valor que se quiere convertir

conversor(14, "kg") // "30.86 lb"
conversor(31, "lb") // "14.06 kg"
conversor(28, "kilos") // "61.73 lb"
```
## Creditos

- [Mateo Gómez](https://github.com/nidreim/conversor-kg-lb)

## Licencia

[MIT](https://opensource.org/licenses/MIT)
npm package: @nidreim/platzom
Description: Traductor de idioma platzom
Author: Mateo Gomez
Latest version: 0.1.0

# Platzom

Platzom es un idioma inventado para el [curso de fundamentos de javascript](https://platzi.com/js) de [platzi](https://platzi.com), el mejor lujgar de educacion online

## Descripcion del idioma

- Si la palabra termina con "ar", se le quitan esas dos letras

- Si la plabra inicia con Z, se le añade "pe" al final

- Si la palabra traducida tiene 10 o mas letras, se debe partir en dos por la mitad y unir con un guion medio

- Por ultimo, si la plabra es un palíndromo, ninguna regla anterior cuenta y se devuelve la misma palbra per intercambiando letras mayúsculas y minúsculas


## Instalación

```
npm install platzom
```

## Uso

```
import platzom from `platzom`

platzom("programar") // programa
Platzom("zorro") // Zorrope
Platzom("zarpar") // >arppe
Platzom("abecedario") //abece-dario
Platzom("sometemos") // SoMeTeMos
```

## Créditos
- [Mateo Gómez](mateogomezmolina@gmail.com)

## Licencia

[MIT](https://opensource.org/licenses/MIT)
npm package: @nidstang/result
Description: https://elrincondelfront.substack.com/p/manejo-de-errores-con-javascript
Latest version: 1.0.3

# Usage
https://elrincondelfront.substack.com/p/manejo-de-errores-con-javascript


## API

```javascript
type Result<T,E> = {
    /**
        * returns true if Result is an ok and false otherwise
    */
    isOk() : Boolean,

    /**
        * returns true if Result is a fail and false otherwise
    */
    isFail() : Boolean,

    /**
        * returns true if the value provided is the same as the result value
    */
    containsValue(value : T) : Boolean,

    /**
        * apply the provided function over the value when Result is an ok. Returns the same result otherwise
    */
    map(fn: (value : T) => T) : Result<T,E>,

    /**
        * apply the provided function that returns a Result when Result is an ok. Returns the same result otherwise
    */
    flatMap(fn: (value : T) => Result<T,E>) : Result<T,E>,

    /**
        * goes to a promise. resolve if result is ok and reject otherwise
    */
    resolve() : Promise<T,E>,

    /**
        * same as map but only when result is a fail. Returns same result otherwise
    */
    mapErr(fn : (error : E) => Resutl<T,E>) : Result<T,E>,

    /**
        * map a function over a ok value and if it's a fail it will return the default value
    */
    mapOr<K>(defaultValue : K, fn: (value : T) => T) : Result<T,E> | K,

    /**
        * same as mapOr but lazily executed. rather than a defaultvalue, a default function is return
    */
    mapOrElse<K>(defaultFn : (value : T) => K, fn: (value : T) => T)  : Result<T,E> | K,

    /**
        * allows to break the result. if it's ok the T value is return, otherwise default value is returned
    */
    unwrapOr<K>(defaultValue : K) : T | K,
}
```
npm package: @niefeng/babel-console-clear
Description: ## Install ```bash # yarn yarn add @niefeng/babel-console-clear --dev ```
Latest version: 0.0.2

# niefeng-babel-console-clear

## Install
```bash
# yarn
yarn add @niefeng/babel-console-clear --dev
```

## Usage
.babelrc
```bash
{
  "plugins": [
    [
      "module:@niefeng/babel-console-clear",
      { "include": ["log", "error", "warn"] } // 添加要去除的 console，默认不去除
    ]
  ]
}
```
npm package: @niek-peters/gesture-canvas
Description: Canvas with zooming, panning and swiping functionalities
Author: Niek Peters
Latest version: 1.1.0

# gesture-canvas

Provides a simple canvas extension that enables panning, zooming and using gestures!

Built on top of the excellent [svelte-pan-zoom](https://github.com/CaptainCodeman/svelte-pan-zoom)
npm package: @nielinjie/multi-repo-cli
Description: multi-repo的默认 UI，具体见主项目——[multi-repo](https://github.com/nielinjie/multi-repo)
Latest version: 1.5.0

# multi-repo-cli

multi-repo的默认 UI，具体见主项目——[multi-repo](https://github.com/nielinjie/multi-repo)

![ScreenShot2020-05-26](images/ScreenShot2020-05-26.png)

## 说明

1. ✅，检查结果，没有问题。
2. ❗️，检查结果，可能有问题。
3. ❓，检查本身出了问题，没有完成检查。
4. ⭐️ ，行动建议，可能采取的行动

## 感谢

1. [ink](https://github.com/vadimdemedes/ink)：非常棒。
npm package: @nielse63/capitalize
Description: Capitalize the first letter of any string
Author: Erik Nielsen
Latest version: 0.1.3

# `@nielse63/capitalize`

> Capitalize the first letter of any string

## Installation

Install with Yarn or npm

```bash
yarn add --dev @nielse63/capitalize
npm install --dev @nielse63/capitalize
```

## Usage

```js
const capitalize = require('@nielse63/capitalize');

const output = capitalize('some string of mine');
// Some string of mine
```

## Contributing

### Development Setup

This project uses a monorepo setup that requires using Yarn because it
relies on
[Yarn workspaces](https://yarnpkg.com/blog/2017/08/02/introducing-workspaces/).
Clone the repo and install the dependencies:

```bash
git clone https://github.com/nielse63/nielse63.git
cd nielse63
yarn
```

## License

[MIT](https://github.com/nielse63/nielse63/blob/master/LICENSE) © [Erik Nielsen](https://312development.com)