open-index/open-npm huggingface dataset:
npm package: @jangaba/circle-calculations
Description: JavaScript library for circle calculations from area, perimeter, radius or diameter
Latest version: 1.0.3

# Circle Calculations

A JavaScript library for calculating circle properties from a single input.

Supported inputs:
- `radius`
- `diameter`
- `perimeter`
- `area`

The library always returns a complete result object with:
- `radius`
- `diameter`
- `perimeter`
- `area`

## Installation

```bash
npm install
```

## Usage

```js
const {
  calculateCircle,
  fromRadius,
  fromDiameter,
  fromPerimeter,
  fromArea,
} = require('./src/circle');
```

### 1) Universal function

`calculateCircle(input)` expects an object with **exactly one** property:
- `{ radius: number }`
- `{ diameter: number }`
- `{ perimeter: number }`
- `{ area: number }`

Example:

```js
const result = calculateCircle({ radius: 5 });

console.log(result);
// {
//   radius: 5,
//   diameter: 10,
//   perimeter: 31.41592653589793,
//   area: 78.53981633974483
// }
```

### 2) Specialized functions

- `fromRadius(radius)`
- `fromDiameter(diameter)`
- `fromPerimeter(perimeter)`
- `fromArea(area)`

Example:

```js
const a = fromDiameter(10);
const b = fromArea(Math.PI);
```

## API

### `calculateCircle(input)`

Input:
- `input: { radius?: number, diameter?: number, perimeter?: number, area?: number }`

Rules:
- The object must contain **exactly one** supported property.
- The value must be a positive finite number (`> 0`).

Output:

```ts
{
  radius: number;
  diameter: number;
  perimeter: number;
  area: number;
}
```

### `fromRadius(radius)`
Calculates all circle values from a radius.

### `fromDiameter(diameter)`
Calculates all circle values from a diameter.

### `fromPerimeter(perimeter)`
Calculates all circle values from a perimeter.

### `fromArea(area)`
Calculates all circle values from an area.

## Validation and errors

The library throws `TypeError` when:
- input is not an object (for example: `null`, array)
- 0 or more than 1 supported property is provided
- value is not a number, is `NaN`, `Infinity`, or `<= 0`

Example:

```js
calculateCircle({}); // TypeError
calculateCircle({ radius: 2, area: 5 }); // TypeError
fromRadius(0); // TypeError
```

## Tests

Run tests:

```bash
npm test
```

Test coverage includes:
- calculations from all supported input types
- consistency of output values
- validation errors

## Publishing to npm

This project includes a publish script:

```bash
npm run publish:npm -- --tag latest --access public
```

Options:
- `--tag <tag>` (default: `latest`)
- `--access <public|restricted>` (default: `public`)
- `--dry-run` for a publish simulation

Examples:

```bash
npm run publish:npm -- --dry-run
npm run publish:npm -- --tag next
```

What the script does:
- runs tests
- verifies npm login (`npm whoami`)
- builds a package tarball (`npm pack`)
- publishes with `npm publish`
npm package: @jangaba/qube
Description: Cube calculator – compute all cube parameters from any single one (edge, diagonal, volume, surface area, radius...)
Latest version: 1.0.1

# qube

Compute all parameters of a cube from any single one.

## Install

```bash
npm install qube
```

## Usage

```js
const { cube } = require("qube");
// or
import { cube } from "qube";

cube({ edge: 5 });
// {
//   edge: 5,
//   faceDiagonal: 7.071,
//   spaceDiagonal: 8.660,
//   surfaceArea: 150,
//   volume: 125,
//   faceArea: 25,
//   perimeter: 20,
//   totalEdgeLength: 60,
//   circumRadius: 4.330,
//   inRadius: 2.5,
//   midRadius: 3.536
// }

cube({ volume: 125 });    // from volume
cube({ surfaceArea: 150 });  // from surface area
cube({ spaceDiagonal: 8.66 }); // from space diagonal
```

## Supported inputs

| Parameter | Description |
|---|---|
| `edge` | Edge length |
| `faceDiagonal` | Face diagonal (a√2) |
| `spaceDiagonal` | Space diagonal (a√3) |
| `surfaceArea` | Surface area (6a²) |
| `volume` | Volume (a³) |
| `faceArea` | Area of one face (a²) |
| `perimeter` | Perimeter of one face (4a) |
| `totalEdgeLength` | Sum of all 12 edges (12a) |
| `circumRadius` | Circumscribed sphere radius |
| `inRadius` | Inscribed sphere radius |
| `midRadius` | Midsphere radius (touches edges) |

Pass **any one** parameter and get **all 11** back.

## API

### `cube(input): CubeResult`

Returns an object with all 11 cube parameters.

### `printCube(input): CubeResult`

Same as `cube()` but also logs the results to the console.

### `descriptions`

Object mapping parameter names to Slovak descriptions.

## License

MIT
npm package: @jangaba/s42-math-commonjs
Description: A simple npm package that provides greeting and math functions.
Author: Ján Gába
Latest version: 0.1.0

# My Simple Package

A simple npm package that provides greeting and math functions.

## Installation

```bash
npm install @jangaba/s42-math-commonjs
```

## Usage

```javascript
const { greet, add } = require('@jangaba/s42-math-commonjs');

console.log(greet('World')); // Output: Hello, World!
console.log(add(2, 3));      // Output: 5
```

## License

MIT
npm package: @jangaba/s42-math-module
Description: A simple npm package that provides greeting and math functions.
Author: Ján Gába
Latest version: 0.1.0

# My Simple Package

A simple npm package that provides greeting and math functions.

## Installation

```bash
npm install @jangaba/s42-math-module
```

## Usage

```javascript
import { greet, add } from '@jangaba/s42-math-module';

console.log(greet('World')); // Output: Hello, World!
console.log(add(2, 3));      // Output: 5
```

## License

MIT
npm package: @jangeldy/react-form
Description: react form component
Author: Jangeldy Nurbekov
Latest version: 1.0.0

# react-jform

> react form component

[![NPM](https://img.shields.io/npm/v/react-jform.svg)](https://www.npmjs.com/package/react-jform) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Install

```bash
npm install --save react-jform
```

## Usage

```jsx
import React, { Component } from 'react'

import MyComponent from 'react-jform'
import 'react-jform/dist/index.css'

class Example extends Component {
  render() {
    return <MyComponent />
  }
}
```

## License

MIT © [Jangeldy Nurbekov](https://github.com/Jangeldy Nurbekov)
npm package: @janger/responsivecarousel
Description: Simple responsive carousel
Author: Gerrit Hillebrecht
Latest version: 0.0.2

# Responsivecarousel

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 12.1.0.

## Code scaffolding

Run `ng generate component component-name --project responsivecarousel` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project responsivecarousel`.
> Note: Don't forget to add `--project responsivecarousel` or else it will be added to the default project in your `angular.json` file. 

## Build

Run `ng build responsivecarousel` to build the project. The build artifacts will be stored in the `dist/` directory.

## Publishing

After building your library with `ng build responsivecarousel`, go to the dist folder `cd dist/responsivecarousel` and run `npm publish`.

## Running unit tests

Run `ng test responsivecarousel` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
npm package: @janghood/config
Description: Janghood config interpreter.
Author: 阿怪
Latest version: 0.0.1-6

# @janghood/config

> Janghood config loader

## Document

### Usage

#### Config File

You can use `defineJhConfig` to define your config.

config name maybe :

```typescript
  'janghood.config.js',
  'janghood.config.mjs',
  'janghood.config.ts',
  'janghood.config.cjs',
  'janghood.config.mts',
  'janghood.config.cts'
```

In this version, you can add config file in your package.json root path.
Load logic base on `vite config`, but without exhaustive testing, you can also explore the location of the config by
yourself.

##### Typescript

If use `typescript`, you can use `defineJhConfig` to define your config.

```typescript

export default defineJhConfig({
  // ...
})

```

#### API

> haven't written yet.
> 
> you can see the type `JanghoodConfig` definition in `types/config.d.ts`.
> 
> `base` option will merge to `apiExtractor`,`lint.eslint`,`lint.prettier`.
> 
> `prettier` not support right now.
npm package: @janghood/lint
Description: 极客江湖lint库
Author: 阿怪
Latest version: 0.0.5

# @janghood/lint

极客江湖lint库

## Document

Janghood lint library,

dependence on `eslint` and `commitlint`+`husky`.

### Usage

You should install dependency first.
So when you use `@janghood/lint`:

```bash
pnpm install --shamefully-hoist
```

#### Lint

```typescript
// janghood.config.ts
export default defineJhConfig({
  lint: {
    eslint: {
      include: ['*'],
      exclude: ['node_modules'],
    }
  }
})
```

##### TODO

* [ ] `oxlint` config support

#### Commitlint

In `package.json`:

```json
{
  "scripts": {
    "prepare": "jhlint install"
  }
}
```

this script will automatically create `husky`'s `commit-msg` and `pre-push` git hooks.
and you should provide your own lint script:

```json
{
  "scripts": {
    "lint": "jhlint"
  }
}
```

run prepare:

```bash
pnpm run prepare
```

and set your own `commitlint` config:

```typescript
// janghood.config.ts
export default defineJhConfig({
  lint: {
    commitlint: true
  }
})
```

##### SKIP_BUCKET

change `.husky/commit-msg`, add `SKIP_BUCKET=true` before `npx`:

```bash
SKIP_BUCKET=true npx ...
```