open-index/open-npm huggingface dataset:
npm package: @p1p3/angular-utilities
Description: ## Installation
Author: Brainshark
Latest version: 0.15.0

# utilities

## Installation

To install this library, run:

```bash
$ npm install utilities --save
```

## Consuming your library

Once you have published your library to npm, you can import your library in any Angular application by running:

```bash
$ npm install utilities
```

and then from your Angular `AppModule`:

```typescript
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';

// Import your library
import { SampleModule } from 'utilities';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,

    // Specify your library as an import
    LibraryModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }
```

Once your library is imported, you can use its components, directives and pipes in your Angular application:

```xml
<!-- You can now use your library component in app.component.html -->
<h1>
  {{title}}
</h1>
<sampleComponent></sampleComponent>
```

## Development

To generate all `*.js`, `*.js.map` and `*.d.ts` files:

```bash
$ npm run tsc
```

To lint all `*.ts` files:

```bash
$ npm run lint
```

## License

MIT © [Brainshark](mailto:felipe.jaramillo@yuxiglobal.com)
npm package: @p1t1ch/package-example
Description: Example of simple opensource library
Author: p1t1ch
Latest version: 2.1.3

# package-example

Example of simple opensource library with totally useless content 🙃

Point of this package is to show:

1. how to create an opensource project and publish it to npm
1. how to build a library with rollup bundler in esm/cjs formats
1. how to make "tree-shakable" library
1. how to write simple CLI script
1. how to use Storybook for development

## Usage

First things first, install package:

```bash
yarn add @p1t1ch/package-example
```

Library provides React component `Operation` and `math` helpers:

```js
import React from 'react';
import { Operation, math } from '@p1t1ch/package-example';

const SomeComponent = () => <Operation a={16} b={13} func={math.sum} />;
```

And dummy CLI script – log with "Hello" and yor name from `-n` argument:

```bash
# Hello, p1t1ch
npx package-example -n p1t1ch
```

## Development

| `yarn <command>`  | Description                                     |
| ----------------- | ----------------------------------------------- |
| `storybook`       | Starts a Storybook in dev mode                  |
| `storybook:build` | Build static Storybook version in `docs` folder |
| `storybook:serve` | Starts a static server for `docs` browsing      |
| `build`           | Build package                                   |
| `eslint`          | Lint all `.js`, `.jsx`, `.ts` and `.tsx` files  |
npm package: @p1va/ashby
Description: CLI for browsing open positions hosted via Ashby
Author: p1va
Latest version: 0.0.7

<div align="center">

# Ashby CLI

A CLI for browsing job openings in Ashby-powered Job Boards.

![NPM Version](https://img.shields.io/npm/v/%40p1va%2Fashby?style=flat)

</div>

## Installation

You can run the CLI immediately with `npx -y @p1va/ashby`

or install it globally with `npm install -g @p1va/ashby` and invoke the `ashby` command.

## Usage

The CLI supports both direct company names and full Ashby URLs.

```bash
# Markdown output
npx -y @p1va/ashby <company-name>
npx -y @p1va/ashby <company-name> <job-id>
npx -y @p1va/ashby <board-or-job-url>

# JSON output
npx -y @p1va/ashby <company-name> --json | jq .
npx -y @p1va/ashby <company-name> <job-id> --json | jq .
npx -y @p1va/ashby <board-or-job-url> --json | jq .
```

The CLI expects either the URL of the hosted Ashby board or just the company slug.

For example Lovable's career page is hosted at `https://jobs.ashbyhq.com/lovable` and their Ashby company slug is `lovable`.

#### List Jobs

```bash
# npx, markdown output
npx -y @p1va/ashby lovable
npx -y @p1va/ashby https://jobs.ashbyhq.com/lovable

# global installation, markdown output
ashby lovable
ashby https://jobs.ashbyhq.com/lovable
```

#### Job Details

To see the details of a job the CLI expects either pass the company slug plus the job id from the previous step or the URL `https://jobs.ashbyhq.com/lovable/9f4...22d` for the job opening directly.

```bash
# npx, markdown output
npx -y @p1va/ashby lovable 99f4963e7-be14-4dd9-99ce-05df2f06e22d
npx -y @p1va/ashby https://jobs.ashbyhq.com/lovable/99f4963e7-be14-4dd9-99ce-05df2f06e22d

# global installation, markdown output
ashby lovable 99f4963e7-be14-4dd9-99ce-05df2f06e22d
ashby https://jobs.ashbyhq.com/lovable/99f4963e7-be14-4dd9-99ce-05df2f06e22d
```

## Development

- `pnpm install` to install dependencies
- `pnpm dev <company> [job-id]` to run the CLI from source via `tsx`
- To explore Ashby GraphQL API responses
  - `just explore-board "lovable"`
  - `just explore-job "lovable" "264297a0-251c-4d0b-83c1-dc64e1b5d2f3"`

### Publishing

Released via GitHub Actions when a tag starting with `v*` is pushed.

- `pnpm version patch` to increment the version
- `git push --follow-tags` to push the new commit and tag
npm package: @p1xel.tv/webrtc-player
Description: WebRTC peer connection video Player written in typescript
Author: Nico Zweifel
Latest version: 1.0.0

# WebRTCPlayer

WebRTC peer connection video Player written in typescript

This project is heavily inspired by the Unreal Engine 4 Pixelstreaming Example
https://docs.unrealengine.com/en-US/SharingAndReleasing/PixelStreaming/index.html

# install

`yarn add @p1xel.tv/webrtcplayer` or `npm i @p1xel.tv/webrtcplayer`

# example

```ts
import {WebRTCPlayer} from "@p1xel.tv/webrtcplayer";

let rtcPlayer = new WebRTCPlayer(htmlElement, options, webSocket)
rtcPlayer.onWebRtcOffer = (offer: RTCSessionDescriptionInit) => {
    //send offer to Signalling/PeerConnection
};
rtcPlayer.onWebRtcCandidate = (candidate: RTCIceCandidate) => {
    //send candidate to Signalling/PeerConnection
};
rtcPlayer.onDataChannelConnected = () => {
    //...;
};
rtcPlayer.onDataChannelMessage = (data: ArrayBufferLike) => {
    //...
};
rtcPlayer.onVideoInitialised = () => {
    //...
};
 ```

# Development

- Use yarn because of the lock file

`yarn`

# Creating a bundle

`yarn wp`

# Publishing

`yarn pub`
npm package: @p2-es/sandbox
Description: A demo renderer for p2-es
Author: Isaac Mason
Latest version: 1.2.3

# @p2-es/sandbox

`@p2-es/sandbox` is a demo renderer for p2-es.

> **Note:** This library is in early development, releases may not follow semver. For now this is more of an implementation detail of the p2-es website demos than a library you should use in serious projects.

## Installation

```sh
npm install @p2-es/sandbox
```

## Usage

```js
import { Sandbox } from '@p2-es/sandbox'
import * as p2 from 'p2-es'

const sandbox = new Sandbox(({ frame }) => {
    const enablePositionNoise = true // Add some noise in circle positions
    const N = 15 // Number of circles in x direction
    const M = 15 // and in y
    const r = 0.07 // circle radius
    const d = 2.2 // Distance between circle centers

    // Create the world
    const world = new p2.World({
        gravity: [0, -5],
    })

    // Set stiffness of all contacts and constraints
    world.setGlobalStiffness(1e8)

    // Max number of solver iterations to do
    world.solver.iterations = 20

    // Solver error tolerance
    world.solver.tolerance = 0.02

    // Enables sleeping of bodies
    world.sleepMode = p2.World.BODY_SLEEPING

    // Create circle bodies
    for (let i = 0; i < N; i++) {
        for (let j = M - 1; j >= 0; j--) {
            const x = (i - N / 2) * r * d + (enablePositionNoise ? Math.random() * r : 0)
            const y = (j - M / 2) * r * d
            const p = new p2.Body({
                mass: 1,
                position: [x, y],
            })
            p.addShape(new p2.Circle({ radius: r }))
            p.allowSleep = true
            p.sleepSpeedLimit = 1 // Body will feel sleepy if speed<1 (speed is the norm of velocity)
            p.sleepTimeLimit = 1 // Body falls asleep after 1s of sleepiness
            world.addBody(p)
        }
    }

    // Compute max/min positions of circles
    const xmin = (-N / 2) * r * d
    const xmax = (N / 2) * r * d
    const ymin = (-M / 2) * r * d
    const ymax = (M / 2) * r * d

    // Create bottom plane
    const plane = new p2.Body({
        position: [0, ymin],
    })
    plane.addShape(new p2.Plane())
    world.addBody(plane)

    // Left plane
    const planeLeft = new p2.Body({
        angle: -Math.PI / 2,
        position: [xmin, 0],
    })
    planeLeft.addShape(new p2.Plane())
    world.addBody(planeLeft)

    // Right plane
    const planeRight = new p2.Body({
        angle: Math.PI / 2,
        position: [xmax, 0],
    })
    planeRight.addShape(new p2.Plane())
    world.addBody(planeRight)

    // Frame demo
    frame(0, 0, 4, 4)

    return { world }
})

const domElement = document.querySelector('#app')
domElement.style.width = '100%'
domElement.style.height = '100vh'

sandbox.mount(domElement)
```
npm package: @p228/adapter-cloudflare
Description: [Adapter](https://kit.svelte.dev/docs/building-your-app) for building SvelteKit applications on [Cloudflare Pages](https://developers.cloudflare.com/pages/) with [Workers integration](https://developers.cloudflare.com/pages/platform/functions).
Latest version: 2.2.0

# adapter-cloudflare

[Adapter](https://kit.svelte.dev/docs/building-your-app) for building SvelteKit applications on [Cloudflare Pages](https://developers.cloudflare.com/pages/) with [Workers integration](https://developers.cloudflare.com/pages/platform/functions).

## Docs

[Docs](https://kit.svelte.dev/docs/adapter-cloudflare)

## Changelog

[The Changelog for this package is available on GitHub](https://github.com/sveltejs/kit/blob/master/packages/adapter-cloudflare/CHANGELOG.md).
npm package: @p233/stylelint-config-scss
Description: Stylelint configs for SCSS syntax.
Author: Peiwen Lu
Latest version: 4.1.0

# stylelint-config-scss

An opinionated stylelint configurations set.

## Configuration options

- [`stylelint-config-scss`](index.js): Add the basic SCSS lint rules to respect the [stylelint-config-standard](https://github.com/stylelint/stylelint-config-standard) code style scheme.
- [`stylelint-config-recess-order`](https://www.npmjs.com/package/stylelint-config-recess-order) A Stylelint config that sorts CSS properties the way Recess did and Bootstrap did/does.
- [`stylelint-config-scss/css-modules`](./css-modules.js): A fork of [stylelint-config-css-modules](https://github.com/pascalduez/stylelint-config-css-modules) to balance css-modules rules in SCSS

## Installation

```
npm install @p233/stylelint-config-scss --save-dev
```

```
yarn add @p233/stylelint-config-scss --dev
```

## Usage

Select the configurations for your needs and add them to your project `.stylelintrc` file:

```
{
  "extends": [
    "@p233/stylelint-config-scss",
  ]
}
```

## Changelog

### Vesion 4.0.0

1. Upgrade to fit stylelist 15
2. Remove all order rules (`order-bootstrap`, `order-csscomb`, `order-yandex`, `order-zen`), and use [stylelint-config-recess-order](https://www.npmjs.com/package/stylelint-config-recess-order) instead.

### Version 3.1.1

1. Disable `selector-class-pattern` when using `css-modules`
2. Disable `value-keyword-case` for `composes` and `compose-with` properties when using `css-modules`

_Because you might use kebab-case / camelCase / PascalCase for selectors in CSS Modules._

### Version 3.1.0

1. Add `@p233/stylelint-config-scss/css-modules` rules

### Version 3.0.2

1. Remove `@p233/stylelint-config-scss/no-prefixes` rules

### Version 3.0.0

1. Require stylelint 14 and above
2. Remove `@p233/stylelint-config-scss/strict` rules

## Credits

- [stylelint-config-recommended](https://github.com/stylelint/stylelint-config-recommended)
- [stylelint-config-standard](https://github.com/stylelint/stylelint-config-standard)
- [stylelint-config-recommended-scss](https://github.com/stylelint-scss/stylelint-config-recommended-scss)
- [stylelint-config-css-modules](https://github.com/pascalduez/stylelint-config-css-modules)
- [stylelint-config-twbs-bootstrap](https://github.com/twbs/stylelint-config-twbs-bootstrap)
- [csscomb.js](https://github.com/csscomb/csscomb.js)
npm package: @p2a/libp2a
Description: Official client for the P2A service
Latest version: 0.1.0

# libp2a

This package is a Typescript/Javascript client for the [P2A service](https://p2a.telescope.chat/api/v1/docs).

* [Function call](#function-call)
* [Function chat](#function-chat)


#### Function call

Runs one of the available functions based on the prompt and returns the exact
output of the function in the value field.

```ts
import { call } from "libp2a";

const { value } = await call("get the address of Outback downtown Houston");

console.log(value); // # => { "full": "10001 Westheimer Rd #1010, Houston, TX 77042, USA", "postal_code": "77042", "street_name": "Westheimer Road", "complement": "1010", "neighborhood": "Westside", "city_name": "Houston", "state_name": "Texas", "state_code": "TX", "country_name": "United States", "country_code": "US" }
```

#### Function chat

Runs one of the available functions based on the prompt and returns a modified
version of the function’s output according to the prompt instructions.

```ts
import { chat } from "libp2a";

const { value } = await chat("get the address of zipcode 77042 and return only the city name")

console.log(value); // # => "Houston"
```
npm package: @p2dev/express-jwt-jwks
Description: P2.Dev maintained fork of express-jwt-jwks. Simple JWT auth using JWKS key sets for Express.  Wraps express-jwt and jwks-rsa.  AWS Cognito compatible.
Author: Paul Demers
Latest version: 1.0.0

# express-jwt-jwks
Simple JWT auth using JWKS key sets for Express.  Wraps express-jwt and jwks-rsa.  AWS Cognito compatible.

Calls to JWKS are cached, and JWKS entries are associated to a JWT through the "kid" parameter in the JWT header.  Calls through the cache to the remote JWKS are rate limited to 5 req/min.

## Install

    $ npm install express-jwt-jwks

## Usage

The JWT authentication middleware authenticates callers using a JWT.
If the token is valid, `req.user` will be set with the JSON object decoded
to be used by later middleware for authorization and access control.

```javascript



// Obtain JWT auth middleware, using a remote JWKS key set
var SECURE = require('express-jwt-jwks')({
    jwks : "https://....../.well-known/jwks.json"
});


// Express routes, the first is JWT secured, the second is open.

router.get('/restricted', SECURE, (_, res) => {
  res.send("Super secret data")
})

router.get('/open', (_, res) => {
  res.send("Anyone is allowed to see this")
})



```
npm package: @p2m/react-native-qrcode
Description: react-native qrocode generator
Author: Shealtiel-Li
Latest version: 0.0.4

# react-native-qrcode
A react-native component to generate QRcode.

## Installation
```sh
npm install @p2m/react-native-qrcode --save
```
## Usage
```jsx
'use strict';

import React, { Component } from 'react'
import QRCode from 'react-native-qrcode';

import {
    AppRegistry,
    StyleSheet,
    View,
    TextInput
} from 'react-native';

class HelloWorld extends Component {
  state = {
    text: 'http://facebook.github.io/react-native/',
  };

  render() {
    return (
      <View style={styles.container}>
        <TextInput
          style={styles.input}
          onChangeText={(text) => this.setState({text: text})}
          value={this.state.text}
        />
        <QRCode
          value={this.state.text}
          size={200}
          bgColor='purple'
          fgColor='white'/>
      </View>
    );
  };
}

const styles = StyleSheet.create({
    container: {
        flex: 1,
        backgroundColor: 'white',
        alignItems: 'center',
        justifyContent: 'center'
    },

    input: {
        height: 40,
        borderColor: 'gray',
        borderWidth: 1,
        margin: 10,
        borderRadius: 5,
        padding: 5,
    }
});

AppRegistry.registerComponent('HelloWorld', () => HelloWorld);

module.exports = HelloWorld;
```
## Available Props

prop      | type                 | default value
----------|----------------------|--------------
`value`   | `string`             | `http://facebook.github.io/react-native/`
`size`    | `number`             | `128`
`bgColor` | `string` (CSS color) | `"#000"`
`fgColor` | `string` (CSS color) | `"#FFF"`
`style` | `object`               | `{opcity:0}`

# Licenses

All source code is licensed under the [MIT License](https://github.com/Shealtiel-Li/react-native-qrcode/blob/master/LICENSE).