open-index/open-npm huggingface dataset:
npm package: @gera2ld/locky
Description: Transform lock files for different registries.
Author: Gerald
Latest version: 0.1.1

# @gera2ld/locky

![NPM](https://img.shields.io/npm/v/@gera2ld/locky.svg)
![License](https://img.shields.io/npm/l/@gera2ld/locky.svg)
![Downloads](https://img.shields.io/npm/dt/@gera2ld/locky.svg)

Transform `yarn.lock` files for different registries.

Requires Node.js greater than v10.0.

## Why

`yarn.lock` has a `resolved` field that contains the full URL to the tarball of each dependency. When installing with the lock file, the package manager will download the package with the `resolved` URL instead of resolving it with the name and version.

There is a chance that different users have different network conditions, and they may expect different registry to use, resulting as different resolved URLs to download.

For example, in China the NPM registry is slow and people use [taobao registry](https://developer.aliyun.com/mirror/NPM) instead. But for people outside China, it is just the opposite.

With this package, you can always transform the lock file with resolved URLs on an expected registry so that other people could easily install them.

## Installation

You can even use it without installation, via `npx`.

Or install it globally:

```sh
$ yarn global add @gera2ld/locky
```

## Usage

```
Usage: locky yarn [options] <target>

Transform a yarn.lock file

Options:
  -t, --throw  Throw exception if lock file is changed
  -h, --help   display help for command
```

```sh
# transform the yarn.lock to resolve to npm registry
$ locky yarn npm

# use with npx
$ npx @gera2ld/locky yarn npm
```
npm package: @gera2ld/plaid-react
Description: Webpack utility helpers for React
Author: Gerald
Latest version: 1.6.0

# @gera2ld/plaid-react

![NPM](https://img.shields.io/npm/v/@gera2ld/plaid-react.svg)
![License](https://img.shields.io/npm/l/@gera2ld/plaid-react.svg)

A bunch of helpers to add functions to your webpack configuration.
npm package: @gera2ld/plaid-svelte
Description: Webpack utility helpers for Vue
Author: Gerald
Latest version: 1.6.5

# @gera2ld/plaid-svelte

![NPM](https://img.shields.io/npm/v/@gera2ld/plaid-svelte.svg)
![License](https://img.shields.io/npm/l/@gera2ld/plaid-svelte.svg)

A bunch of helpers to add functions to your webpack configuration.
npm package: @gera2ld/plaid-vue
Description: Webpack utility helpers for Vue
Author: Gerald
Latest version: 1.6.5

# @gera2ld/plaid-vue

![NPM](https://img.shields.io/npm/v/@gera2ld/plaid-vue.svg)
![License](https://img.shields.io/npm/l/@gera2ld/plaid-vue.svg)

A bunch of helpers to add functions to your webpack configuration.
npm package: @gera2ld/process-pool
Description: ![NPM](https://img.shields.io/npm/v/@gera2ld/process-pool.svg) ![License](https://img.shields.io/npm/l/@gera2ld/process-pool.svg) ![Downloads](https://img.shields.io/npm/dt/@gera2ld/process-pool.svg)
Author: Gerald
Latest version: 0.2.0

# @gera2ld/process-pool

![NPM](https://img.shields.io/npm/v/@gera2ld/process-pool.svg)
![License](https://img.shields.io/npm/l/@gera2ld/process-pool.svg)
![Downloads](https://img.shields.io/npm/dt/@gera2ld/process-pool.svg)

`process-pool` allows you to do CPU expensive stuff in multiple processes to make use of multiple CPU cores.

## Usage

Assume we have a `main.js` and `worker.js` like this:

```js
// main.js
const Pool = require('@gera2ld/process-pool');

(async () => {
  const pool = new Pool(3, `${__dirname}/worker.js`);

  const [result1, result2] = await Promise.all([
    pool.invoke('add', [1, 2]),
    pool.invoke('minus', [4, 3]),
  ]);
  console.log(result1, result2);

  await pool.destroy();
})();
```

```js
// worker.js
const worker = require('@gera2ld/process-pool/lib/worker');

class Handler {
  add(a, b) {
    return a + b;
  }
}

// Set a handler with preset methods
worker.setHandler(new Handler());

// Add other methods
worker.setMethod('minus', (a, b) => a - b);
```
npm package: @gera2ld/tarjs
Description: A zero-dependency JavaScript library to read and write tar files.
Author: Gerald
Latest version: 0.3.1

# @gera2ld/tarjs

A zero-dependency JavaScript library to read and write tar files.

## Features

- reading and writing
- UTF-8 support for filenames and contents
- no dependency, with support for Node.js, browsers, Deno

## Limitations

- File name (including path) has to be less than 100 characters
- Maximum total file size seems to be limited to somewhere between 500MB to 1GB (exact limit is unknown)

## Usage

```js
// ESM
import { TarReader, TarWriter } from '@gera2ld/tarjs';
// IIFE
const { TarReader, TarWriter } = window.tarjs;

const reader = await TarReader.load(tarFile);
console.log('Loaded items:', reader.fileInfos);
```

Check [jsdoc](https://www.jsdocs.io/package/@gera2ld/tarjs) for API reference.

## Credits

- [ankitrohatgi/tarballjs](https://github.com/ankitrohatgi/tarballjs)
- [Basic Tar Format](https://www.gnu.org/software/tar/manual/html_node/Standard.html)
npm package: @gera2ld/xmlparse
Description: Simple XML parser that works for browser, Node.js and Deno
Author: Gerald
Latest version: 0.1.0

# @gera2ld/xmlparse

![NPM](https://img.shields.io/npm/v/xmlparse.svg)
![License](https://img.shields.io/npm/l/xmlparse.svg)
![Downloads](https://img.shields.io/npm/dt/xmlparse.svg)

Simple XML parser that works for browser, Node.js and Deno.

## Usage

### Deno

```ts
import { parseXml, traverse } from 'https://raw.githubusercontent.com/gera2ld/xmlparse/master/mod.ts';

const { node, warnings } = parseXml(xmlText);

if (warnings.length) console.warn('You got warnings!');

traverse(node, node => {
  console.log('This is a node:', node);
});
```

### JavaScript

```sh
$ yarn add @gera2ld/xmlparse
```

```js
import { parseXml, traverse } from '@gera2ld/xmlparse';

const { node, warnings } = parseXml(xmlText);

if (warnings.length) console.warn('You got warnings!');

traverse(node, node => {
  console.log('This is a node:', node);
});
```
npm package: @gerainlot/color-palette
Description: color utils from ui library
Author: zhangshuai
Latest version: 1.0.2

# color-palette

Color Utils for UI Library

根据给定颜色通过算法生成指定包含十个颜色的梯度色板，也可生成暗色模式下包含十个颜色的色板。

## Usage

```bash
npm i @gerainlot/color-palette
```

```js
import { generate, presetColor } from "@gerainlot/color-palette";
console.log(generate("#123456"));
console.log(presetColor);
// {
//   red: {...},
//   orangered: {...},
//   orange: {...},
//   gold: {...},
//   yellow: {...},
//   lime: {...},
//   green: {...},
//   cyan: {...},
//   blue: {...},
//   arcoblue: {...},
//   purple: {...},
//   pinkpurple: {...},
//   magenta: {...},
//   gray: {...}
// }
```

## API

### generate(color: string, options: Object);

#### options.index {number | 1-10}

生成 10 个梯度色中的第几个颜色。

#### options.list {boolean}

生成包含十个颜色的梯度颜色数组。

#### options.dark

生成暗色色板的颜色。

#### options.format {'hex' | 'rgb' | 'hsl'}

生成颜色的格式。

### getPresetColors {Function}

包含了预设的 14 组颜色，包括一组中性灰。

- `red`
- `orangered`
- `orange`
- `gold`
- `yellow`
- `lime`
- `green`
- `cyan`
- `blue`
- `arcoblue`
- `purple`
- `pinkpurple`
- `magenta`
- `gray`

```js
const { red } = getPresetColors();
console.log(red.light);
console.log(red.dark);
console.log(red.primary);
```

### getRgbStr(color: string)

获得指定颜色的三通道 r, g, b 字符串。

```js
getRgbStr("#F53F3F"); // 245,63,63
```
npm package: @gerald-lbn/ally-startgg
Description: Ally driver for Start.gg
Author: Gérald Leban
Latest version: 0.0.1

# Ally Start.gg Driver

`@gerald-lbn/ally-startgg` is a Start.gg driver for [AdonisJS Ally](https://docs.adonisjs.com/guides/social-auth).

## Getting Started

This package is available in the npm registry.

```bash
npm install @gerald-lbn/ally-startgg
```

Next, configure the package by running the following command.

```bash
node ace configure @gerald-lbn/ally-startgg
```

Then register the service inside the configuration file `config/ally.ts`.

```ts
// config/ally.ts
import { defineConfig } from '@adonisjs/ally'
import { startgg } from '@gerald-lbn/ally-startgg'
import env from '#start/env'

const allyConfig = defineConfig({
  startgg: startgg({
    clientId: env.get('STARTGG_CLIENT_ID'),
    clientSecret: env.get('STARTGG_CLIENT_SECRET'),
    callbackUrl: env.get('STARTGG_CALLBACK_URL'),
    scopes: ["user.identity", "user.email"],
  }),
})
```
npm package: @geraldani/platzom
Description: Traductor de idioma platzom
Author: Geraldyn Chirinos
Latest version: 0.1.0

# Platzom
Platzom es un Idioma inventado para el Curso de fundamentos de **JavaScript** de [Platzi](https://platzi.com).
El mejor lugar para educación online.

## Descripción del idioma
- Si termina con ar se le quitan esas dos letras. Ejem: programar => program
- Si la palabra comienza con z, se le añade pe al final. Ejem: zorro => zorrope , zarpar => zarppe
- Si la palabra traducida tiene 10 o mas letras, se debe partir en dos por la mitad y uni con un guion medio. Ejem: abededario => abece-dario
- Si la palabra original es un palindromo, ninguna regla anterior cuenta y se devuelve la misma palabra pero intercalando letras mayusculas y minusculas . Ejem: sometemos => SoMeTeMoS

## Instalación 
```
npm install platzom
```

## Uso
```javascript
import platzom from 'platzom'
platzom("programar") //program
platzom("zarpar") //zarppe
platzom("abecedario") //abecedario
platzom("sometemos") //SoMeTeMoS
```
## Creditos
[Geraldyn Chirnos](http://instagram.com/geral_desousa27)

## Licence 
[MIT](https://opensource.org/licenses/MIT)
npm package: @geraldcloudnine/bbcode-to-react
Description: A utility for turning raw BBCode into React elements. (forked - https://www.npmjs.com/package/bbcode-to-react)
Latest version: 1.0.0


# bbcode-to-react

A utility for turning raw BBCode into React elements.

## Installation

Install `bbcode-to-react` and __peer dependencies__ via NPM

```sh
npm install --save bbcode-to-react react
```

Import `bbcode-to-react`, example:

```js
import React from 'react';
import parser from 'bbcode-to-react';
import { renderToString } from 'react-dom/server';

const Example = (props) => {
  return (
    <p>{parser.toReact('[b]strong[/b]')}</p>
  );
}

// render: <p><strong>strong</strong></p>
console.log(renderToString(<Example />));


```

## Add new tag example

```js
import React from 'react';
import parser, { Tag } from 'bbcode-to-react';

class YoutubeTag extends Tag {
  toReact() {
    // using this.getContent(true) to get it's inner raw text.
    const attributes = {
      src: this.getContent(true),
      width: this.params.width || 420,
      height: this.params.height || 315,
    };
    return (
      <iframe
        {...attributes}
        frameBorder="0"
        allowFullScreen
      />
    );
  }
}

class BoldTag extends Tag {
  toReact() {
    // using this.getComponents() to get children components.
    return (
      <b>{this.getComponents()}</b>
    );
  }
}

parser.registerTag('youtube', YoutubeTag); // add new tag
parser.registerTag('b', BoldTag); // replace exists tag

const Example = (props) => {
  return (
    <p>{parser.toReact('[youtube width="400"]https://www.youtube.com/embed/AB6RjNeDII0[/youtube]')}</p>
  );
}

```

## Development

Install dependencies:

```sh
npm install
```

Run examples at [http://localhost:8080/](http://localhost:8080/) with webpack dev server:

```sh
npm start
```

Run tests & coverage report:

```sh
npm test
```

Watch tests:

```sh
npm run test-watch
```

# Credits

* **bbcodejs:** `bbcode-to-react` uses the parser from [bbcodejs](https://github.com/vishnevskiy/bbcodejs), so much of the credit is due there.
* **reactstrap:** `bbcode-to-react` uses the webpack config and publish scripts from [reactstrap](https://github.com/reactstrap/reactstrap).
npm package: @geraldojrcg/adminjs-upload
Description: This is an unofficial [AdminJS](https://github.com/SoftwareBrothers/adminjs) feature which uploads files to resources.
Latest version: 1.0.3

# Upload Feature for AdminJS [forked]

This is an unofficial [AdminJS](https://github.com/SoftwareBrothers/adminjs) feature which uploads files to resources.

## AdminJS

AdminJS is an automatic admin interface which can be plugged into your application. You, as a developer, provide database models (like posts, comments, stores, products or whatever else your application uses), and AdminJS generates UI which allows you (or other trusted users) to manage content.

Check out the example application here: https://adminjs-demo.herokuapp.com/admin/

Or visit [AdminJS](https://github.com/SoftwareBrothers/adminjs) github page.

## Usage

To see example usage see the [example-app](https://github.com/SoftwareBrothers/adminjs-upload/tree/master/example-app) or visit the [@adminjs/upload section under AdminJS project page](https://docs.adminjs.co/basics/features/upload).

## License

AdminJS is copyrighted © 2023 rst.software. It is a free software, and may be redistributed under the terms specified in the [LICENSE](LICENSE.md) file.

## About rst.software

<img src="https://pbs.twimg.com/profile_images/1367119173604810752/dKVlj1YY_400x400.jpg" width=150>

We’re an open, friendly team that helps clients from all over the world to transform their businesses and create astonishing products.

- We are available for [hire](https://www.rst.software/estimate-your-project).
- If you want to work for us - check out the [career page](https://www.rst.software/join-us).
npm package: @geraldojrcg/eslint-config
Description: ESLint configuration used by @geraldojrcg
Author: @geraldojrcg
Latest version: 1.0.1

## ESLint configuration for my personal projects

ESLint and prettier configuration all in one

## How to use

### instalation

#### npm

`npm install --save-dev @geraldojrcg/eslint-config`

#### yarn

`yarn add -D @geraldojrcg/eslint-config`

#### bun

`bun add -D @geraldojrcg/eslint-config`

### ESLint config file

Add the eslint-config and prettier in your eslint config file inside `extends` list

```js
module.exports = {
  extends: ["@geraldojrcg/eslint-config", "prettier"],
};
```

### VSCode configuration

Change your vscode configuration creating a local .vscode/settings.json file to enable format on save hook using eslint instead of prettier

```js
{
  "editor.formatOnSave": false,
  "editor.codeActionsOnSave": {
    "source.fixAll": "explicit"
  },
}
```
npm package: @geralfonso/platzom
Description: Traducto de idioma platzom
Author: German Alfonso
Latest version: 0.1.1

# Platzom

Platzom es un idioma inventado para el [Curso de Fundamentos de javascript](https://platzi.com/js) de platzi, el mejor curo se educación online

## Descripción del idioma

- Si una palabra termina con "ar", se le quitan esas dos letras.
- Si la palabra iniciada con Z, se le añade "pe" al final.
- Si la palabra traducida tiene 10 o más letras, se debe partir en dos por la mitad y unir con un guión medio.
- Por último, si la palabra original es un palíndromo, ninguna regla anterior cuenta y se devuelve la misma palabra pero intercalando letras mayúsculas y minúsculas.

## Instalación

```
npm install @geralfonso/platzom
```

## Uso

```
import platzom from 'platzom'

platzom('Programar') // Program
platzom('Zorro') // Zorrope
platzom('Zarpar') // Zarppe
platzom('Abecedario') // abece-dario
platzom('sometemos') // SoMeTeMoS

## Créditos

- [German Alfonso](https://twitter.com/geralfonso)

## Licencia

[MIT](https://opensource.org/licenses/MIT)