open-index/open-npm huggingface dataset:
npm package: @commit-generator/core
Description: Core module for the Commit Generator, providing essential operations and AI model schemes.
Author: JulioC090
Latest version: 1.0.2

# @commit-generator/core

This package provides the core functionalities for the Commit Generator project. It includes essential commit operations and AI model schemes.

## Installation

To use this package in your project, install it as a dependency:

```bash
pnpm install @commit-generator/core
```

## Usage

1. Using Factories  
Actions are generated using factories. Here’s an example:

```javascript
import { createGenerateCommit } from '@commit-generator/core';

async function generate() {
  const generateCommitConfig = {
    provider: 'openai',
    params: { key: 'some_key' },
  };

  const generateCommit = createGenerateCommit(
    generateCommitConfig, 
    'path/to/history', 
    ['pnpm-lock.yaml']
  );

  console.log(
    await generateCommit.execute({
      type: 'feat',
      context: 'This is a test commit',
    })
  );
}

generate();
```

2. AI Model Schemes  
For convenience, this module exports AI schemes from [AI Models](../../packages/ai-models/).

```javascript
import { aiModelSchemes } from '@commit-generator/core/schemes';

console.log(aiModelSchemes);
```

## License
This package is licensed under the MIT License.
npm package: @common-intellisense/nut-ui4
Description: ## :coffee:
Author: Simon He
Latest version: 0.0.2

## Vitesse

## :coffee:

[buy me a cup of coffee](https://github.com/Simon-He95/sponsor)

## License

[MIT](./license)

## Sponsors

<p align="center">
  <a href="https://cdn.jsdelivr.net/gh/Simon-He95/sponsor/sponsors.svg">
    <img src="https://cdn.jsdelivr.net/gh/Simon-He95/sponsor/sponsors.png"/>
  </a>
</p>
npm package: @common-intellisense/varlet2
Description: ## :coffee:
Author: Simon He
Latest version: 0.0.1

## Vitesse

## :coffee:

[buy me a cup of coffee](https://github.com/Simon-He95/sponsor)

## License

[MIT](./license)

## Sponsors

<p align="center">
  <a href="https://cdn.jsdelivr.net/gh/Simon-He95/sponsor/sponsors.svg">
    <img src="https://cdn.jsdelivr.net/gh/Simon-He95/sponsor/sponsors.png"/>
  </a>
</p>
npm package: @common.js/escape-string-regexp
Description: escape-string-regexp package exported as CommonJS modules
Latest version: 5.0.0

# @common.js/escape-string-regexp

The [escape-string-regexp](https://www.npmjs.com/package/escape-string-regexp) package exported as CommonJS modules.

Exported from [escape-string-regexp@5.0.0](https://www.npmjs.com/package/escape-string-regexp/v/5.0.0) using https://github.com/etienne-martin/common.js.
npm package: @common.js/mem
Description: mem package exported as CommonJS modules
Latest version: 10.0.0

# @common.js/mem

The [mem](https://www.npmjs.com/package/mem) package exported as CommonJS modules.

Exported from [mem@10.0.0](https://www.npmjs.com/package/mem/v/10.0.0) using https://github.com/etienne-martin/common.js.
npm package: @common.js/mimic-fn
Description: Make a function mimic another one
Latest version: 4.0.0

<img src="media/logo.svg" alt="mimic-fn" width="400">
<br>

> Make a function mimic another one

Useful when you wrap a function in another function and like to preserve the original name and other properties.

## Install

```
$ npm install mimic-fn
```

## Usage

```js
import mimicFunction from 'mimic-fn';

function foo() {}
foo.unicorn = '🦄';

function wrapper() {
	return foo();
}

console.log(wrapper.name);
//=> 'wrapper'

mimicFunction(wrapper, foo);

console.log(wrapper.name);
//=> 'foo'

console.log(wrapper.unicorn);
//=> '🦄'

console.log(String(wrapper));
//=> '/* Wrapped with wrapper() */\nfunction foo() {}'
```


## API

### mimicFunction(to, from, options?)

Modifies the `to` function to mimic the `from` function. Returns the `to` function.

`name`, `displayName`, and any other properties of `from` are copied. The `length` property is not copied. Prototype, class, and inherited properties are copied.

`to.toString()` will return the same as `from.toString()` but prepended with a `Wrapped with to()` comment.

#### to

Type: `Function`

Mimicking function.

#### from

Type: `Function`

Function to mimic.

#### options

Type: `object`

##### ignoreNonConfigurable

Type: `boolean`\
Default: `false`

Skip modifying [non-configurable properties](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptor#Description) instead of throwing an error.

## Related

- [rename-fn](https://github.com/sindresorhus/rename-fn) - Rename a function
- [keep-func-props](https://github.com/ehmicky/keep-func-props) - Wrap a function without changing its name and other properties

---

<div align="center">
	<b>
		<a href="https://tidelift.com/subscription/pkg/npm-mimic-fn?utm_source=npm-mimic-fn&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
	</b>
	<br>
	<sub>
		Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
	</sub>
</div>
npm package: @common.js/p-locate
Description: Get the first fulfilled promise that satisfies the provided testing function
Latest version: 6.0.0

# p-locate

> Get the first fulfilled promise that satisfies the provided testing function

Think of it like an async version of [`Array#find`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Array/find).

## Install

```
$ npm install p-locate
```

## Usage

Here we find the first file that exists on disk, in array order.

```js
import {pathExists} from 'path-exists';
import pLocate from 'p-locate';

const files = [
	'unicorn.png',
	'rainbow.png', // Only this one actually exists on disk
	'pony.png'
];

const foundPath = await pLocate(files, file => pathExists(file));

console.log(foundPath);
//=> 'rainbow'
```

*The above is just an example. Use [`locate-path`](https://github.com/sindresorhus/locate-path) if you need this.*

## API

### pLocate(input, tester, options?)

Returns a `Promise` that is fulfilled when `tester` resolves to `true` or the iterable is done, or rejects if any of the promises reject. The fulfilled value is the current iterable value or `undefined` if `tester` never resolved to `true`.

#### input

Type: `Iterable<Promise | unknown>`

An iterable of promises/values to test.

#### tester(element)

Type: `Function`

This function will receive resolved values from `input` and is expected to return a `Promise<boolean>` or `boolean`.

#### options

Type: `object`

##### concurrency

Type: `number`\
Default: `Infinity`\
Minimum: `1`

The number of concurrently pending promises returned by `tester`.

##### preserveOrder

Type: `boolean`\
Default: `true`

Preserve `input` order when searching.

Disable this to improve performance if you don't care about the order.

## Related

- [p-map](https://github.com/sindresorhus/p-map) - Map over promises concurrently
- [p-filter](https://github.com/sindresorhus/p-filter) - Filter promises concurrently
- [p-any](https://github.com/sindresorhus/p-any) - Wait for any promise to be fulfilled
- [More…](https://github.com/sindresorhus/promise-fun)

---

<div align="center">
	<b>
		<a href="https://tidelift.com/subscription/pkg/npm-p-locate?utm_source=npm-p-locate&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
	</b>
	<br>
	<sub>
		Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
	</sub>
</div>
npm package: @commonbase/sdk
Description: Commonbase is a Typescript SDK for building LLM integrations and tooling
Author: Commonbase Inc.
Latest version: 0.15.2

# Commonbase Typescript SDK for building LLM integrations faster and easier

[![npm version](https://badge.fury.io/js/@commonbase%2Fsdk.svg)](https://badge.fury.io/js/@commonbase%2Fsdk)

Commonbase allows developers to integrate with any popular LLM API provider
without needing to change any code. The SDK helps with collecting data and
feedback from the users and helps you fine-tune models for your specific use
case.

[![](./docs/chat-repl.gif)](./examples/chat-repl.ts)

## Installation

Install [Commonbase from npm](https://www.npmjs.com/package/@commonbase/sdk)
using your preferred package manager:

```bash
npm add @commonbase/sdk
pnpm add @commonbase/sdk
yarn add @commonbase/sdk
```

## Usage

A Project ID and API Key are required for all Commonbase requests. You can find
your project ID and generate an API key in the
[Commonbase Dashboard](https://commonbase.com/).

To create a completion, configure a `Client` with your API Key and provide your
Project ID and prompt to `createCompletion`.

```typescript
import { Client } from "@commonbase/sdk";

const client = new Client({
  apiKey: "API_KEY",
});

const completion = await client.createCompletion({
  projectId: "PROJECT_ID",
  prompt: "Hello",
});

console.log(completion.bestChoice.text);
```

To stream a completion as it is generated, use `streamChatCompletion`.

For more examples, see
[/examples](https://github.com/commonbaseapp/commonbase-js/tree/main/examples).
npm package: @commonify/steno
Description: CommonJS version of steno 2.1.0. See https://github.com/mifi/commonify
Author: Typicode
Latest version: 2.1.0

# Steno [![](http://img.shields.io/npm/dm/steno.svg?style=flat)](https://www.npmjs.org/package/steno) [![Node.js CI](https://github.com/typicode/steno/actions/workflows/node.js.yml/badge.svg)](https://github.com/typicode/steno/actions/workflows/node.js.yml)

> Specialized fast async file writer

**Steno** makes writing to the same file often/concurrently fast and safe.

Used in [lowdb](https://github.com/typicode/lowdb).

_https://en.wikipedia.org/wiki/Stenotype_

## Features

- Fast (see benchmark)
- Lightweight (~6kb)
- Promise-based
- Atomic write
- No race condition
- TypeScript definitions

## Usage

```javascript
import { Writer } from 'steno'

// Create a singleton writer
const file = new Writer('file.txt')

// Use it in the rest of your code
async function save() {
  await file.write('some data')
}
```

## Benchmark

`npm run benchmark` (see `src/benchmark.ts`)

```
Write 1KB data to the same file x 1000

  fs     : 62.303ms
  steno  : 1.384ms

  fs.txt = steno.txt ✓


Write 1MB data to the same file x 1000

  fs     : 2.300s
  steno  : 5.444ms

  fs.txt = steno.txt ✓
```

## License

MIT - [Typicode](https://github.com/typicode)