open-index/open-npm huggingface dataset:
npm package: @offen/esbuild-plugin-jsonschema
Description: Compile JSON schema definitions on import using esbuild
Author: Frederik Ring
Latest version: 1.1.0

# esbuild-plugin-jsonschema
Compile and pack JSON schema definitions on import using esbuild

## Installation

The package is released to npm as `@offen/esbuild-plugin-jsonschema`:

```
npm install @offen/esbuild-plugin-jsonschema -D
```

## Usage

In the default configuration, the transform is applied to all files with a `.schema` extension. The transformed module will export the packed AJV `validate` function.

In your application:

```js
const validateFoo = require('./foo.schema')

const ok = validateFoo({ foo: true })
if (!ok) {
  console.log(validateFoo.errors)
  throw new Error('Foo did not validate')
}
```

When bundling:

```js
const esbuild = require('esbuild')
const jsonschemaPlugin = require('@offen/esbuild-plugin-jsonschema')

esbuild.build({
  entryPoints: ['app.js'],
  bundle: true,
  plugins: [jsonschemaPlugin()],
  outdir: './public'
})
```

### Defining schemas

Schemas are expected to be defined in JSON format and saved as `.schema` files:

```json
{
  "type": "string",
  "maxLength": 128
}
```

## Options

The transform accepts the following options as its 2nd arguments:

### `secure`

By default, this plugin only compiles ["secure" schemas][secure]. This can be disabled by passing `secure: false` to the transform.

[secure]: https://github.com/ajv-validator/ajv/tree/521c3a53f15f5502fb4a734194932535d311267c#security-considerations

### `filter`

By default, files with a `.schema` or a `.schema.json` extension are compiled. If you have different requirements you can pass a Regexp to `filter` for the plugin to use.

### `addFormats`

Includes [ajv-formats](https://github.com/ajv-validator/ajv-formats). Default `true`.

### `ajvOptions`

Custom [options](https://ajv.js.org/options.html) to be passed to Ajv constructor.

## Releasing a new version

New versions can be released using `npm version <patch|minor|major>`. Make sure you are authenticated against the `@offen` scope with npm.

## License

Copyright 2021 Frederik Ring - Available under the MIT License
npm package: @offen/schemaify
Description: Browserify transform for compiling JSON schemas at build time using AJV
Author: Frederik Ring
Latest version: 0.1.0

# schemaify

Browserify transform for compiling JSON schemas at build time using AJV

## Installation

The package is released to npm as `schemaify`:

```
npm install @offen/schemaify -D
```

## Usage

In the default configuration, the transform is applied to all files with a `.schema` extension. The transformed module will export the AJV `validate` function.

In your application:

```js
var validateFoo = require('./foo.schema')

var ok = validateFoo({ foo: true })
if (!ok) {
  console.log(validateFoo.errors)
  throw new Error('Foo did not validate')
}
```

When bundling:

```js
var browserify = require('browserify')

var b = browserify()
b.add('app.js')
b.transform('@offen/schemaify')
b.bundle(function (err, src) {
  // consume bundle
})
```

### Options

The transform accepts the following options as its 2nd arguments:

#### `secure`

By default, `schemaify` only compiles ["secure" schemas][secure]. This can be disabled by passing `secure: false` to the transform.

[secure]: https://github.com/ajv-validator/ajv/tree/521c3a53f15f5502fb4a734194932535d311267c#security-considerations

#### `matcher`

By default, `schemaify` only compiles files with a `.schema` extension. If you have different requirements you can pass a Regexp string to `matcher` for the transform to use.

**Important caveat**: Due to the way that Browserify handles JSON files, you currently __cannot use JSON files__ for storing your schemas, as this would make these files subject to another set of rules that would conflict with.

## Releasing a new version

New versions can be released using `npm version <patch|minor|major>`. Make sure you are authenticated against the `@offen` scope with npm.

## License

Copyright 2020 Frederik Ring - Available under the MIT License
npm package: @offer-ui/react
Description: <div align="center"> <img width="300" alt="offerlogo" src="https://user-images.githubusercontent.com/70738281/183294312-c87511e2-68fc-4414-af75-0041ee42e289.png"> </div>
Author: offer-price
Latest version: 0.3.6

# @offer-ui/react

<div align="center">
<img width="300" alt="offerlogo" src="https://user-images.githubusercontent.com/70738281/183294312-c87511e2-68fc-4414-af75-0041ee42e289.png">
</div>

<br/>

[![](https://badgen.net/npm/v/@offer-ui/react?icon=npm)](https://www.npmjs.com/package/@offer-ui/react)
[![NPM downloads](http://img.shields.io/npm/dm/@offer-ui/react.svg)](http://npmjs.com/@offer-ui/react)

> Offer Design System UI for React components.

## 🎉 Getting Started

Run the following command using [npm](https://www.npmjs.com/):

```bash
$ npm install @offer-ui/react
```

If you prefer [Yarn](https://yarnpkg.com/en/), use the following command instead:

```bash
$ yarn add @offer-ui/react
```

## 🚀 Usage

To start using the components, please follow these steps:

1. Wrap your application with the `OfferStyleProvider` provided by
   **@offer-ui/react**.

```jsx
import { OfferStyleProvider } from "@offer-ui/react"

// Do this at the root of your application
function App({ children }) {
  return <OfferStyleProvider>{children}</OfferStyleProvider>
}
```

1. Now you can start using components like so!:

```jsx
import { Badge } from "@offer-ui/react"

function Example() {
  return <Badge colorType="orange">I just consumed some Offer!</Badge>
}
```

More guides on how to get started are available
[here](https://github.com/price-offer/offer-design-system/wiki/Components)

## 📝 License

@offer-ui/react is made available under the [MIT License](/LICENSE).
npm package: @offeringsolutions/nx-karma-to-jest
Description: Replacing Karma with Jest in an nx workspace
Author: Fabian Gosebrink
Latest version: 0.1.3

# Nx Karma To Jest Schematic for Angular Projects

![TravisCi build](https://travis-ci.org/FabianGosebrink/nx-karma-to-jest.svg?branch=master 'Travis CI Build')
[![npm (scoped)](https://img.shields.io/npm/v/@offeringsolutions/nx-karma-to-jest.svg)](https://www.npmjs.com/package/@offeringsolutions/nx-karma-to-jest)

![commandline usage](.github/ng-cmd.png 'Commandline usage')

## Description

This schematic will migrate your Nx Workspace from Karma to Jest. It will scan the workspace, find all projects and lib and update them all including the workspace itself.

## Actions

This schematic will

- Create Jest files inside your project/lib folders
- Delete Karma files inside your project/lib folders
- Update testing section for your project/lib in the `angular.json` file
- Update the schematic test runner in the `angular.json` file from `karma` to `jest`
- Create Jest files on root level
- Delete Karma files on root level
- Modify `package.json` (removing Karma deps, adding Jest deps) and install them
npm package: @offeringsolutions/nx-protractor-to-cypress
Description: Replacing Protractor with Cypress in an nx workspace
Author: Fabian Gosebrink
Latest version: 0.2.0

# Nx Protractor To Cypress Schematic for Angular Projects

![TravisCi build](https://travis-ci.org/FabianGosebrink/nx-protractor-to-cypress.svg?branch=master 'Travis CI Build')
[![npm (scoped)](https://img.shields.io/npm/v/@offeringsolutions/nx-protractor-to-cypress.svg)](https://www.npmjs.com/package/@offeringsolutions/nx-protractor-to-cypress)

![commandline usage](.github/ng-cmd.png 'Commandline usage')

## Usage

```
ng add @offeringsolutions/nx-protractor-to-cypress
```

## Description

This schematic will migrate your Nx Workspace from using Protractor to use Cypress. It will scan the workspace, find all projects and update them all including the workspace itself.

## Actions

This schematic will

- Create Cypress files inside your project-e2e folders
- Delete protractor files
- Update all used sections in the `angular.json` file
- Update the e2e test runner in the `angular.json` file from `protractor` to `cypress`
- Modify `package.json` (removing Protractor deps, adding Cypress deps) and install them