open-index/open-npm huggingface dataset:
npm package: @sweetcorn/astro
Description: A custom Astro image service to generate dithered images using Sweetcorn
Latest version: 0.4.3

# `@sweetcorn/astro`

A custom Astro image service to generate dithered images using Sweetcorn.

## Installation

```bash
npx astro add @sweetcorn/astro
```

## Documentation

Learn more in the [Sweetcorn documentation site](https://delucis.github.io/sweetcorn/).

## License

[MIT](https://github.com/delucis/sweetcorn/blob/main/LICENSE)
npm package: @sweetlands/elo-rating-system
Description: a math lib
Author: amir-dehghani
Latest version: 1.1.0

# elo-rating-system
a system for chess algoritm
## Usage

```sh
# install elo-system-rating
npm install @sweetlands/elo-rating-system

#### Syntax

```js
import Rating from '@sweetlands/elo-rating-system';

const scoreA = 100
const scoreB = 200
# const pi = 400  required
const rating = new Rating(scoreA , scoreB , pi)
const E = rating.resolveE()
```
npm package: @sweetlikepete/babel
Description: Collection of babel dependencies
Author: Peter Bodechtel
Latest version: 1.0.8

# @sweetlikepete/babel

[![npm version](https://badge.fury.io/js/%40sweetlikepete%2Fbabel.svg)](https://badge.fury.io/js/%40sweetlikepete%2Fbabel)

This package provides a set of dependencies that can be used to run babel with @sweetlikepete/babel-config without having to do the manual peer dependency install step required if you
install @sweetlikepete/babel-preset directly.

## Usage

### Installation

1. Install the package:

  ```sh
  yarn add --dev @sweetlikepete/babel
  ```
npm package: @sweetlikepete/babel-preset
Description: Shared preset for babel
Author: Peter Bodechtel
Latest version: 1.0.23

# @sweetlikepete/babel-preset

[![npm version](https://badge.fury.io/js/%40sweetlikepete%2Fbabel-preset.svg)](https://badge.fury.io/js/%40sweetlikepete%2Fbabel-preset)

This package provides a preset for babel.

## Usage

A single babel preset is exported.

Our default export contains all of our babel plugins and presets. It requires the following peer dependencies:

```
    @babel/core
```

### Installation

1. Install the shared configuration:

  ```sh
  yarn add --dev @sweetlikepete/babel-preset
  ```

2. Install the shared configuration peer dependencies (npm 5+):

  ```sh
  npx install-peerdeps --dev @sweetlikepete/babel-preset
  ```

3. Add `"@sweetlikepete/babel-preset"` or your `"presets"` array in to your .babelrc.

## Configuration

### targets

#### `string | Array<string> | { [string]: string }, defaults to {}.`

Describes the environments you support/target for your project.

This can either be a browserslist-compatible query:

```
{
  "targets": "> 0.25%, not dead"
}
```

Or an object of minimum environment versions to support:

```
{
  "targets": {
    "chrome": "58",
    "ie": "11"
  }
}
```

Example environments: chrome, opera, edge, firefox, safari, ie, ios, android, node, electron.

Sidenote, this uses @babel/preset-env under the hood, so if no targets are specified it will transform all ECMAScript 2015+ code by default.


### addModuleExports

#### `boolean, defaults to false.`

Enables the export default module.exports that was turned off in Babel 6.


### debug

#### `boolean, defaults to false.`

Outputs the targets/plugins used and the version specified in plugin data version to console.log.


### development

#### `boolean, defaults to false.`

Toggles plugins that aid in development, such as @babel/plugin-transform-react-jsx-self and
@babel/plugin-transform-react-jsx-source.


## Maintenance

You can run tests with `npm test`.
npm package: @sweetlikepete/eslint
Description: Collection of eslint dependencies
Author: Peter Bodechtel
Latest version: 1.0.23

# @sweetlikepete/eslint

[![npm version](https://badge.fury.io/js/%40sweetlikepete%2Feslint.svg)](https://badge.fury.io/js/%40sweetlikepete%2Feslint)

This package provides a set of dependencies that can be used to run eslint with @sweetlikepete/eslint-config without having to do the manual peer dependency install step required if you
install @sweetlikepete/eslint-config directly.

## Usage

### Installation

1. Install the package:

  ```sh
  yarn add --dev @sweetlikepete/eslint
  ```
2. Add `"extends": "@sweetlikepete"` to your .eslintrc.
npm package: @sweetlikepete/eslint-config
Description: Shared config for eslint
Author: Peter Bodechtel
Latest version: 1.0.67

# @sweetlikepete/eslint-config

[![npm version](https://badge.fury.io/js/%40sweetlikepete%2Feslint-config.svg)](https://badge.fury.io/js/%40sweetlikepete%2Feslint-config)

This package provides a shared config for eslint and several of its plugins.

Optionally, it also includes support for eslinting typescript.

## Usage

A single ESLint configuration is exported.

Our default export contains all of our ESLint rules, including ECMAScript 6+ and several plugins. It requires the following peer dependencies:

```
    @typescript-eslint/eslint-plugin
    @typescript-eslint/parser
    eslint
    eslint-plugin-array-func
    eslint-plugin-async-await
    eslint-plugin-compat
    eslint-plugin-css-modules
    eslint-plugin-es
    eslint-plugin-eslint-comments
    eslint-plugin-filenames
    eslint-plugin-format-message
    eslint-plugin-import
    eslint-plugin-jsx-control-statements
    eslint-plugin-lean-imports
    eslint-plugin-more
    eslint-plugin-no-loops
    eslint-plugin-no-unsanitized
    eslint-plugin-no-useless-assign
    eslint-plugin-node
    eslint-plugin-optimize-regex
    eslint-plugin-prefer-object-spread
    eslint-plugin-promise
    eslint-plugin-react
    eslint-plugin-react-filenames
    eslint-plugin-react-hooks
    eslint-plugin-react-native
    eslint-plugin-react-perf
    eslint-plugin-react-redux
    eslint-plugin-react-ssr
    eslint-plugin-security
    eslint-plugin-sort-keys-fix
    eslint-plugin-unicorn
    eslint-plugin-webassembly
    eslint-plugin-you-dont-need-lodash-underscore
    eslint-plugin-you-dont-need-momentjs
    typescript
```

### Installation

1. Install the shared configuration:

  ```sh
  yarn add --dev @sweetlikepete/eslint-config
  ```

2. Install the shared configuration peer dependencies (npm 5+):

  ```sh
  npx install-peerdeps --dev @sweetlikepete/eslint-config
  ```

3. Add this to your .eslintrc.

  ```json
    "extends": "@sweetlikepete"
  ```

4. If you want to lint typescript, add this to your .eslintrc instead.

  ```json
    "extends": "@sweetlikepete/eslint-config/lib/configs/typescript"
  ```

## Maintenance

You can run tests with `npm test`.

You can make sure this module lints with itself using `npm run lint`.
npm package: @sweetlikepete/imagemin
Description: Preconfigured imagemin function
Author: Peter Bodechtel
Latest version: 1.0.1

# @sweetlikepete/imagemin

[![npm version](https://badge.fury.io/js/%40sweetlikepete%2Fimagemin.svg)](https://badge.fury.io/js/%40sweetlikepete%2Fimagemin)

This package provides a shared config for imagemin and several of its plugins.

## Install

```
$ npm install imagemin
```
## Usage

```js
import imagemin from "@sweetlikepete/imagemin";

(async () => {

  const files = await imagemin(['images/*.{jpg,png}'], 'build/images');

  console.log(files);
  //=> [{data: <Buffer 89 50 4e …>, path: 'build/images/foo.jpg'}, …]

})();
```

## API

### imagemin(input, [output], [options])

Returns `Promise<Object[]>` in the format `{data: Buffer, path: string}`.

#### input

Type: `string[]`

Files to be optimized. See supported `minimatch` [patterns](https://github.com/isaacs/minimatch#usage).

#### output

Type: `string`

## Maintenance

You can run tests with `npm test`.
npm package: @sweetlikepete/logger
Description: Logger for brick tasks
Author: Peter Bodechtel
Latest version: 1.0.4

# @sweetlikepete/logger

[![npm version](https://badge.fury.io/js/%40sweetlikepete%2Flogger.svg)](https://badge.fury.io/js/%40sweetlikepete%2Flogger)

This package provides a logger for brick tasks.

## Install

```
$ npm install logger
```
## Usage

```js
import logger from "@sweetlikepete/logger";

logger.log(label, message);

```

## Maintenance

You can run tests with `npm test`.
npm package: @sweetlikepete/stylelint
Description: Collection of stylelint dependencies
Author: Peter Bodechtel
Latest version: 1.0.5

# @sweetlikepete/stylelint

[![npm version](https://badge.fury.io/js/%40sweetlikepete%2Fstylelint.svg)](https://badge.fury.io/js/%40sweetlikepete%2Fstylelint)

This package provides a set of dependencies that can be used to run stylelint with @sweetlikepete/stylelint-config without having to do the manual peer dependency install step required if you
install @sweetlikepete/stylelint-config directly.

## Usage

### Installation

1. Install the package:

  ```sh
  yarn add --dev @sweetlikepete/stylelint
  ```
2. Add `"extends": "@sweetlikepete/stylelint"` to your .stylelintrc.
npm package: @sweetlikepete/stylelint-config
Description: Shared config for stylelint
Author: Peter Bodechtel
Latest version: 1.0.12

# @sweetlikepete/stylelint-config

[![npm version](https://badge.fury.io/js/%40sweetlikepete%2Fstylelint-config.svg)](https://badge.fury.io/js/%40sweetlikepete%2Fstylelint-config)

This package provides a shared config for stylelint and several of its plugins.

## Usage

A single stylelint configuration is exported.

Our default export contains all of our stylelint rules. It requires the following peer dependencies:

```
    stylelint
    stylelint-order
    stylelint-scss
```

### Installation

1. Install the shared configuration:

  ```sh
  yarn add --dev @sweetlikepete/stylelint-config
  ```

2. Install the shared configuration peer dependencies (npm 5+):

  ```sh
  npx install-peerdeps --dev @sweetlikepete/stylelint-config
  ```

3. Add `"extends": "@sweetlikepete/stylelint-config"` to your .stylelintrc.

## Maintenance

You can run tests with `npm test`.
npm package: @sweetlikepete/webpack-config
Description: Shared config for webpack
Author: Peter Bodechtel
Latest version: 1.0.2

# @sweetlikepete/babel-preset

[![npm version](https://badge.fury.io/js/%40sweetlikepete%2Fbabel-preset.svg)](https://badge.fury.io/js/%40sweetlikepete%2Fbabel-preset)

This package provides a preset for babel.

## Usage

A single babel preset is exported.

Our default export contains all of our babel plugins and presets. It requires the following peer dependencies:

```
    @babel/core
```

### Installation

1. Install the shared configuration:

  ```sh
  yarn add --dev @sweetlikepete/babel-preset
  ```

2. Install the shared configuration peer dependencies (npm 5+):

  ```sh
  npx install-peerdeps --dev @sweetlikepete/babel-preset
  ```

3. Add `"@sweetlikepete/babel-preset"` or your `"presets"` array in to your .babelrc.

## Configuration

### targets

#### `string | Array<string> | { [string]: string }, defaults to {}.`

Describes the environments you support/target for your project.

This can either be a browserslist-compatible query:

```
{
  "targets": "> 0.25%, not dead"
}
```

Or an object of minimum environment versions to support:

```
{
  "targets": {
    "chrome": "58",
    "ie": "11"
  }
}
```

Example environments: chrome, opera, edge, firefox, safari, ie, ios, android, node, electron.

Sidenote, this uses @babel/preset-env under the hood, so if no targets are specified it will transform all ECMAScript 2015+ code by default.


### addModuleExports

#### `boolean, defaults to false.`

Enables the export default module.exports that was turned off in Babel 6.


### debug

#### `boolean, defaults to false.`

Outputs the targets/plugins used and the version specified in plugin data version to console.log.


### development

#### `boolean, defaults to false.`

Toggles plugins that aid in development, such as @babel/plugin-transform-react-jsx-self and
@babel/plugin-transform-react-jsx-source.


## Maintenance

You can run tests with `npm test`.