open-index/open-npm huggingface dataset:
npm package: @pretextbook/latex-pretext
Description: Tools for working with PreTeXt documents in LaTeX format
Author: Oscar Levin
Latest version: 0.0.7

# latex-pretext

This package provides a simple wrapper around `@unified-latex/unified-latex-to-pretext` to convert LaTeX to PreTeXt. It is used by the VSCode extension, but can also be used in other contexts.

## Building

Run `nx build latex-pretext` to build the library.

## Running unit tests

Run `nx test latex-pretext` to execute the unit tests via [Vitest](https://vitest.dev/).

## Development playground

From `packages/latex-pretext`, run `npm run dev` to open a local page with a LaTeX input pane and live PreTeXt output pane.

From the workspace root, you can still run `nx run @pretextbook/latex-pretext:playground`.

If you want a static build of the playground, run `nx run @pretextbook/latex-pretext:playground:build`.
npm package: @prethora/react-toggle
Description: An elegant, accessible toggle component for React. Also a glorified checkbox.
Author: Aaron Shafovaloff
Latest version: 4.1.4

An elegant, accessible toggle component for React. Also a glorified checkbox.

See [usage and examples](http://aaronshaf.github.io/react-toggle/).

## Props

The component takes the following props.

| Prop              | Type       | Description |
|-------------------|------------|-------------|
| `checked`         | _boolean_  | If `true`, the toggle is checked. If `false`, the toggle is unchecked. Use this if you want to treat the toggle as a controlled component |
| `defaultChecked`  | _boolean_  | If `true` on initial render, the toggle is checked. If `false` on initial render, the toggle is unchecked. Use this if you want to treat the toggle as an uncontrolled component |
| `onChange`        | _function_ | Callback function to invoke when the user clicks on the toggle. The function signature should be the following: `function(e) { }`. To get the current checked status from the event, use `e.target.checked`. |
| `onFocus`         | _function_ | Callback function to invoke when field has focus. The function signature should be the following: `function(e) { }` |
| `onBlur`          | _function_ | Callback function to invoke when field loses focus. The function signature should be the following: `function(e) { }` |
| `name`            | _string_   | The value of the `name` attribute of the wrapped \<input\> element |
| `value`           | _string_   | The value of the `value` attribute of the wrapped \<input\> element |
| `id`              | _string_   | The value of the `id` attribute of the wrapped \<input\> element |
| `icons`        | _object_  | If `false`, no icons are displayed. You may also pass custom icon components in `icons={{checked: <CheckedIcon />, unchecked: <UncheckedIcon />}}` |
| `aria-labelledby` | _string_   | The value of the `aria-labelledby` attribute of the wrapped \<input\> element |
| `aria-label`      | _string_   | The value of the `aria-label` attribute of the wrapped \<input\> element |
| `disabled`        | _boolean_  | If `true`, the toggle is disabled. If `false`, the toggle is enabled |

## Installation

```bash
npm install react-toggle
```

## Usage

If you want the default styling, include the component's [CSS](./style.css) with

```javascript
import "react-toggle/style.css" // for ES6 modules
// or
require("react-toggle/style.css") // for CommonJS
```

## Development

```javascript
npm install
npm run dev
```

## Build

```javascript
npm run build
```

## License

MIT
npm package: @pretso/ocpp
Description: OCPP 1.6: Open Charge Point Protocol
Author: Vitalii Savchuk
Latest version: 1.0.1

# Open Charge Point Protocol 1.6

[![Build Status](https://travis-ci.org/elifTech/cpd-ocpp.svg?branch=master)](https://travis-ci.org/elifTech/cpd-ocpp)

This repository contain abstraction layer for easy work with OCPP and validate input and output requests.
Currently implemented only version 1.6 JSON. Whereas OCPP2.0 will support only JSON have no plans to implement SOAP.

## Article

https://www.eliftech.com/blog/48-a-diy-charging-point-for-an-electric-car-perspective-protocol-and-prototype

## Installation
```
npm install --save ocpp-eliftech
```

## Overview

Open Charge Point Protocol (OCPP, <http://www.openchargealliance.org/>) is a communication protocol between multiple charging stations ("charge points") and a single management software ("central system").

## Usage

Server

```js
import { OCPPServer, OCPPCommands } from 'ocpp-eliftech';

const server = new OCPPServer();

server.listen(9220);

server.onRequest = async function(command) {
    // Handle different commands
    if (command instanceof OCPPCommands.BootNotification) {
        return {
            status: 'Accepted',
            currentTime: new Date().toISOString(),
            interval: 60
        };
    }
}
```

Client

```js
import { OCPPClient, OCPPCommands } from 'ocpp-eliftech';

const client = new OCPPClient({
    serverUrl: 'http://localhost:9220/webServices/ocpp/CP1111'
});

await client.connect();

const boot = new OCPPCommands.BootNotification({
    chargePointVendor: 'BrandX',
    chargeBoxSerialNumber: 'AQ1234VB5678',
    chargePointSerialNumber: '123',
    chargePointModel: '12'
});

let answer = await client.send(boot);
console.info(answer);
```

### P.S.

If you need professional support with your IOT projects contact us http://www.eliftech.com/.
npm package: @prettier/cli
Description: A faster CLI for Prettier.
Latest version: 0.10.0

# prettier-cli

A faster CLI for Prettier.

The goal is to make this close to ~100% backwards compatible, and then just ship it in a future stable release of the `prettier` package, replacing the current CLI.

If you find any bugs, missing features, or unexpected slowness, please open an issue.

## Installation

```sh
npm install prettier@next
```

It should be largely backwards compatible:

```sh
prettier . --check # Like before, but faster
```

You can also try it via `npx`, though `npx` itself is pretty slow:

```sh
npx prettier@next . --check
```
npm package: @prettier/html-event-attributes
Description: List of HTML event handler attributes.
Author: fisker
Latest version: 0.0.1

# @prettier/html-event-attributes

[![Npm Version][package_version_badge]][package_link]
[![MIT License][license_badge]][license_link]
[![Coverage][coverage_badge]][coverage_link]

[coverage_badge]: https://img.shields.io/codecov/c/github/prettier/html-event-attributes.svg?style=flat-square
[coverage_link]: https://app.codecov.io/gh/prettier/html-event-attributes
[license_badge]: https://img.shields.io/npm/l/html-event-attributes.svg?style=flat-square
[license_link]: https://github.com/prettier/html-event-attributes/blob/main/license
[package_version_badge]: https://img.shields.io/npm/v/@prettier/html-event-attributes.svg?style=flat-square
[package_link]: https://www.npmjs.com/package/@prettier/html-event-attributes

> List of HTML tags.

## Install

```bash
yarn add @prettier/html-event-attributes
```

## Usage

```js
import htmlEventAttributes from '@prettier/html-event-attributes';

console.log(htmlEventAttributes);
//=> ['onabort', 'onafterprint', 'onauxclick', …]
```
npm package: @prettier/html-tags
Description: List of HTML tags.
Author: fisker
Latest version: 2.2.0

# @prettier/html-tags

[![Npm Version][package_version_badge]][package_link]
[![MIT License][license_badge]][license_link]
[![Coverage][coverage_badge]][coverage_link]

[coverage_badge]: https://img.shields.io/codecov/c/github/prettier/prettier.svg?style=flat-square
[coverage_link]: https://app.codecov.io/gh/prettier/html-tags
[license_badge]: https://img.shields.io/npm/l/html-tags.svg?style=flat-square
[license_link]: https://github.com/prettier/html-tags/blob/main/license
[package_version_badge]: https://img.shields.io/npm/v/@prettier/html-tags.svg?style=flat-square
[package_link]: https://www.npmjs.com/package/@prettier/html-tags

> List of HTML tags.

## Install

```bash
yarn add @prettier/html-tags
```

## Usage

<!-- Usage start -->

```js
import {htmlTags, htmlVoidTags} from '@prettier/html-tags'

console.log(htmlTags)
//=> ['a', 'abbr', 'acronym', ... 148 more items]

console.log(htmlVoidTags)
//=> ['area', 'base', 'basefont', ... 17 more items]
```

<!-- Usage end -->
npm package: @prettier/is-es5-identifier-name
Description: Check if provided string is an `IdentifierName` as specified in ECMA262 edition 5.1 section 7.6.
Author: fisker Cheung
Latest version: 0.2.0

# is-es5-identifier-name

> Check if provided string is an `IdentifierName` as specified in [ECMA262 edition 5.1 section 7.6](https://262.ecma-international.org/5.1/#sec-7.6).

## Installation

```bash
yarn add @prettier/is-es5-identifier-name
```

## Usage

```js
import isEs5IdentifierName from "@prettier/is-es5-identifier-name";

isEs5IdentifierName("prettier");
// -> true

isEs5IdentifierName("16");
// -> false
```
npm package: @prettier/mcp
Description: MCP server for Prettier.
Author: fisker Cheung
Latest version: 0.0.1

# @prettier/mcp

[![Npm Version](https://img.shields.io/npm/v/@prettier/mcp.svg?style=flat-square)](https://www.npmjs.com/package/@prettier/mcp)
[![MIT License](https://img.shields.io/npm/l/@prettier/mcp.svg?style=flat-square)](https://github.com/prettier/prettier/blob/main/license)

> [Model Context Protocol](https://modelcontextprotocol.io/) (MCP) server for Prettier.

## Usage

```bash
npx @prettier/mcp
```
npm package: @prettier/parse-srcset
Description: A spec-conformant JavaScript parser for the HTML5 srcset attribute
Author: Alex Bell
Latest version: 3.1.0

# @prettier/parse-srcset

This repository is a fork of https://github.com/albell/parse-srcset for [Prettier](https://github.com/prettier/prettier).

---

A javascript parser for the [HTML5 srcset](http://www.w3.org/TR/html-srcset/) attribute, based on the [WHATWG reference algorithm](https://html.spec.whatwg.org/multipage/embedded-content.html#parse-a-srcset-attribute). It has an extensive test suite based on the [W3C srcset conformance checker](http://w3c-test.org/html/semantics/embedded-content/the-img-element/srcset/parse-a-srcset-attribute.html).

## Installation

```bash
yarn add @prettier/parse-srcset
```

## Usage

```js
import parseSrcset from "@prettier/parse-srcset";

parseSrcset('elva-fairy-320w.jpg, elva-fairy-480w.jpg 1.5x, elva-fairy-640w.jpg 2x');
/*
[
  { source: { value: 'elva-fairy-320w.jpg', startOffset: 0 } },
  {
    source: { value: 'elva-fairy-480w.jpg', startOffset: 21 },
    density: { value: 1.5 }
  },
  {
    source: { value: 'elva-fairy-640w.jpg', startOffset: 47 },
    density: { value: 2 }
  }
]
*/
```
npm package: @prettier/php
Description: Prettier PHP Plugin
Author: Lucas Azzola
Latest version: 0.0.0-development

# Prettier PHP

![](https://i.giphy.com/media/GNvOUgBvLzVwA/giphy.webp)

Check back soon :)

<!--
## Install

```bash
yarn add --dev --exact prettier @prettier/php
```

## Configure

.prettierrc:

```json
{
  "plugins": ["@prettier/php"]
}
```

## Use

```bash
prettier --write "**/*.php"
```
-->
npm package: @prettier/plugin-hermes
Description: Prettier Hermes plugin.
Author: fisker Cheung
Latest version: 0.1.3

# @prettier/plugin-hermes

[![Npm Version](https://img.shields.io/npm/v/@prettier/plugin-hermes.svg?style=flat-square)](https://www.npmjs.com/package/@prettier/plugin-hermes)
[![MIT License](https://img.shields.io/npm/l/@prettier/plugin-hermes.svg?style=flat-square)](https://github.com/prettier/prettier/blob/main/license)

> Prettier [Hermes](https://github.com/facebook/hermes/blob/main/README.md) plugin.

## Install

```bash
yarn add --dev prettier @prettier/plugin-hermes
```

## Usage

Create or modify your [prettier configuration file](https://prettier.io/docs/en/configuration) to use the plugin:

```yaml
plugins:
  - "@prettier/plugin-hermes"
```

**Requires prettier >= 3.6**

Or config explicitly

```yaml
overrides:
  - files:
      - "**/*.{js.flow,js,mjs,cjs}"
    options:
      plugins:
        - "@prettier/plugin-hermes"
      parser: hermes
```
npm package: @prettier/plugin-mdx1
Description: Prettier MDX1 plugin
Author: fisker
Latest version: 0.0.5

# @prettier/plugin-mdx1

[![Npm Version](https://img.shields.io/npm/v/@prettier/plugin-mdx1.svg?style=flat-square)](https://www.npmjs.com/package/@prettier/plugin-mdx1)
[![MIT License](https://img.shields.io/npm/l/@prettier/plugin-mdx1.svg?style=flat-square)](https://github.com/prettier/prettier-plugin-mdx1/blob/main/license)

> Prettier plugin for MDX1.

> [!IMPORTANT]
> This plugin extracted for MDX1 users from prettier v3.7.
>
> Please migrate to MDX3, and use the builtin parser if possible.
>
> This plugin only change if bugs found, won't add any new features.

## Install

```bash
yarn add --dev --exact prettier @prettier/plugin-mdx1
```

## Usage

Create or modify your [prettier configuration file](https://prettier.io/docs/en/configuration) to use the plugin:

```js
// prettier.config.mjs
import * as prettierPluginMdx1 from "@prettier/plugin-mdx1";

/**
 * @see https://prettier.io/docs/configuration
 * @type {import("prettier").Config}
 */
const config = {
  plugins: [prettierPluginMdx1],
};

export default config;
```
npm package: @prettier/plugin-oxc
Description: Prettier Oxc plugin.
Author: fisker Cheung
Latest version: 0.1.3

# @prettier/plugin-oxc

[![Npm Version](https://img.shields.io/npm/v/@prettier/plugin-oxc.svg?style=flat-square)](https://www.npmjs.com/package/@prettier/plugin-oxc)
[![MIT License](https://img.shields.io/npm/l/@prettier/plugin-oxc.svg?style=flat-square)](https://github.com/prettier/prettier/blob/main/license)

> Prettier [Oxc](https://oxc.rs/) plugin.

## Install

```bash
yarn add --dev prettier @prettier/plugin-oxc
```

## Usage

Create or modify your [prettier configuration file](https://prettier.io/docs/en/configuration) to use the plugin:

```yaml
plugins:
  - "@prettier/plugin-oxc"
```

**Requires prettier >= 3.6**

Or config explicitly

```yaml
overrides:
  - files:
      - "**/*.{js,mjs,cjs,jsx}"
    options:
      plugins:
        - "@prettier/plugin-oxc"
      parser: oxc
  - files:
      - "**/*.{ts,mts,cts,tsx}"
    options:
      plugins:
        - "@prettier/plugin-oxc"
      parser: oxc-ts
```
npm package: @prettier/plugin-python
Description: Prettier Python Plugin
Author: Lucas Azzola
Latest version: 0.0.0-development

<p align="center">
    :construction: Work in Progress! :construction:
</p>

<div align="center">
<img alt="Prettier"
  src="https://cdn.rawgit.com/prettier/prettier-logo/master/images/prettier-icon-light.svg">
<img alt="Python"
  hspace="25"
  height="210"
  src="https://upload.wikimedia.org/wikipedia/commons/c/c3/Python-logo-notext.svg">
</div>

<h2 align="center">Prettier Python Plugin</h2>

<p align="center">
  <a href="https://gitter.im/jlongster/prettier">
    <img alt="Gitter" src="https://img.shields.io/gitter/room/jlongster/prettier.svg?style=flat-square">
  </a>
  <a href="https://travis-ci.org/prettier/prettier-python">
    <img alt="Travis" src="https://img.shields.io/travis/prettier/prettier-python/master.svg?style=flat-square">
  </a>
  <a href="https://www.npmjs.com/package/@prettier/plugin-python">
    <img alt="npm version" src="https://img.shields.io/npm/v/@prettier/plugin-python.svg?style=flat-square">
  </a>
  <!-- <a href="https://www.npmjs.com/package/@prettier-plugin-python">
    <img alt="monthly downloads" src="https://img.shields.io/npm/dm/@prettier/plugin-python.svg?style=flat-square">
  </a> -->
  <a href="#badge">
    <img alt="code style: prettier" src="https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square">
  </a>
  <a href="https://twitter.com/PrettierCode">
    <img alt="Follow+Prettier+on+Twitter" src="https://img.shields.io/twitter/follow/prettiercode.svg?label=follow+prettier&style=flat-square">
  </a>
</p>

## WORK IN PROGRESS

Please note that this plugin is under active development, and might not be ready to run on production code yet.

## Contributing

If you're interested in contributing to the development of Prettier for Python, you can follow the [CONTRIBUTING guide from Prettier](https://github.com/prettier/prettier/blob/master/CONTRIBUTING.md), as it all applies to this repository too.

To test it out on a Python file:

* Clone this repository.
* Run `yarn`.
* Create a file called `test.py`.
* Run `yarn prettier test.py` to check the output.

## Install

```bash
yarn add --dev --exact prettier @prettier/plugin-python
```

## Use

```bash
prettier --write "**/*.py"
```

## Maintainers

<table>
  <tbody>
    <tr>
      <td align="center">
        <a href="https://github.com/patrick91">
          <img width="150" height="150" src="https://github.com/patrick91.png?v=3&s=150">
          </br>
          Patrick Arminio
        </a>
      </td>
    </tr>
  <tbody>
</table>
npm package: @prettier/python
Description: Prettier Python Plugin
Author: Lucas Azzola
Latest version: 0.0.0-development

# Prettier Python

![](https://i.giphy.com/media/GNvOUgBvLzVwA/giphy.webp)

Check back soon :)

<!--
## Install

```bash
yarn add --dev --exact prettier prettier-python
```

## Configure

.prettierrc:

```json
{
  "plugins": ["prettier-python"]
}
```

## Use

```bash
prettier --write "**/*.py"
```
-->
npm package: @prettier/sync
Description: Synchronous version of Prettier
Author: fisker Cheung
Latest version: 0.6.1

# @prettier/sync

[![Build Status][github_actions_badge]][github_actions_link]
[![Coverage][codecov_badge]][codecov_link]
[![Npm Version][package_version_badge]][package_link]
[![MIT License][license_badge]][license_link]

[github_actions_badge]: https://img.shields.io/github/actions/workflow/status/prettier/prettier-synchronized/continuous-integration.yml?style=flat-square
[github_actions_link]: https://github.com/prettier/prettier-synchronized/actions?query=branch%3Amain
[codecov_badge]: https://img.shields.io/codecov/c/github/prettier/prettier-synchronized?style=flat-square
[codecov_link]: https://codecov.io/gh/prettier/prettier-synchronized
[license_badge]: https://img.shields.io/npm/l/@prettier/sync.svg?style=flat-square
[license_link]: https://github.com/prettier/prettier-synchronized/blob/main/license
[package_version_badge]: https://img.shields.io/npm/v/@prettier/sync.svg?style=flat-square
[package_link]: https://www.npmjs.com/package/@prettier/sync

> Synchronous version of Prettier

## Installation

```sh
yarn add prettier @prettier/sync
```

## Usage

```js
import synchronizedPrettier from "@prettier/sync";

synchronizedPrettier.format("foo( )", { parser: "babel" });
// => 'foo();\n'
```

This package is a simple wrapper of [`make-synchronized`](https://github.com/fisker/make-synchronized).

For more complex use cases, it's better to use [`make-synchronized`](https://github.com/fisker/make-synchronized) directly:

Example 1:

```js
// utilities.js
import * as fs from "node:fs/promises";
import * as prettier from "prettier";

export async function formatFile(file) {
  const config = await prettier.resolveConfig(file);
  const content = await fs.readFile(file, "utf8");
  const formatted = await prettier.format(content, {
    ...config,
    filepath: file,
  });
  await fs.writeFile(file, formatted);
}

// index.js
import makeSynchronized from "make-synchronized";

const utilities = makeSynchronized(new URL("./utilities.js", import.meta.url));

utilities.formatFile("/path/to/file.js");
```

Example 2:

```js
import * as fs from "node:fs/promises";
import * as prettier from "prettier";
import makeSynchronized from "make-synchronized";

export default makeSynchronized(import.meta, async function formatFile(file) {
  const config = await prettier.resolveConfig(file);
  const content = await fs.readFile(file, "utf8");
  const formatted = await prettier.format(content, {
    ...config,
    filepath: file,
  });
  await fs.writeFile(file, formatted);
});
```

Alternatively you can also use [`synckit`](https://github.com/un-ts/synckit) or [`make-synchronous`](https://github.com/sindresorhus/make-synchronous).

### `createSynchronizedPrettier(options)`

#### `options`

Type: `object`

##### `prettierEntry`

Type: `string | URL`

Path or URL to prettier entry.

```js
import { createSynchronizedPrettier } from "@prettier/sync";

const synchronizedPrettier = createSynchronizedPrettier({
  prettierEntry: "/path/to/prettier/index.js",
});

synchronizedPrettier.format("foo( )", { parser: "babel" });
// => 'foo();\n'
```