open-index/open-npm huggingface dataset:
npm package: @modernserf/safe-html
Description: Safe HTML + stylesheet insertion in React
Latest version: 0.1.0

# safe-html

Safe HTML + stylesheet insertion in React

## What is this?

This is an experiment in allowing, effectively, a safe subset of JSX & scoped CSS for enabling end-user customization on social media platforms.

## Usage

See example code at [frontend/index.js](https://glitch.com/edit/#!/modernserf-safe-html?path=frontend/index.js) and the demo app at [modernserf-safe-html.glitch.me](https://modernserf-safe-html.glitch.me).

## Should I use this?

Not yet. Maybe someday!

## License

MIT
npm package: @moderntribe/eslint-config-custom
Description: ESLint plugin for WME development.
Author: Modern Tribe Incubator Team
Latest version: 0.1.0

# ESLint Custom Config

This is an [ESLint](https://eslint.org/) plugin including configurations and custom rules for WME development.

This primarily extends the [`@typescript/eslint-plugin/recommended`](https://github.com/typescript-eslint/typescript-eslint) and [`@wordpress/eslint-plugin/recommended`](https://github.com/WordPress/gutenberg/tree/master/packages/eslint-plugin) rulesets.

In addition, this ruleset does implement a number of custom rules:

- Using typescript eslint parser to allow for eslint Import ([see issue](https://github.com/gajus/eslint-plugin-jsdoc/issues/604#issuecomment-653962767))
- prettier formatting
- No yoda conditionals
- Radix argument required for `parseInt`.

## Installation

Install the module

```
pnpm install @moderntribe/eslint-config-custom --save-dev
```

## Usage

To opt-in to the default configuration, extend your own project's `.eslintrc.js` file:

```js
module.exports = {
  extends: ["plugin:@moderntribe/eslint-config-custom/recommended"],
};
```

Refer to the [ESLint documentation on Shareable Configs](http://eslint.org/docs/developer-guide/shareable-configs) for more information.

The `recommended` preset will include rules governing an ES2015+ environment, and includes rules from [``](https://github.com/prettier/eslint-plugin-prettier), [`@wordpress/eslint-plugin/recommended`](https://github.com/WordPress/gutenberg/tree/master/packages/eslint-plugin) project.

### Rules

| Rule                                                                  | Description      | Recommended |
| --------------------------------------------------------------------- | ---------------- | ----------- |
| [custom-tbd](/packages/eslint-config-custom/docs/rules/custom-tbd.md) | TBD Custom Rules | ✓           |
npm package: @moderntribe/postcss-multi-selector-replace
Description: PostCSS plugin for selector replacement.
Author: Yuta Ito
Latest version: 1.0.0

# postcss-multi-selector-replace
This is a fork of postcss-selector-replace and is used on our projects at Modern Tribe.

# Example

__postcss.config.js__   

```
module.exports = {
  plugins: [
    require('postcss-selector-replace')({
      "before": ["[base]", "[test]"],
      "after": ["^", "~"]
    })
  ]
}
```

__before.css__   

```
[base]contentpage {
	background-color: red;
}
```

__after.css__   

```
^contentpage {
	background-color: red;
}
```
npm package: @modernweb/angular-cdk-bootstrap
Description: Bootstrap components powered by [@angular/cdk](https://material.angular.io/cdk/categories)
Latest version: 0.0.1-rc.3

# Angular CDK Bootstrap

Bootstrap components powered by [@angular/cdk](https://material.angular.io/cdk/categories)

[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-green.svg)](https://conventionalcommits.org)

## Development server

Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.

## Build

Run `yarn build` to build the project for production. The build artifacts will be stored in the `dist/` directory.

## Running unit tests

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

## Running end-to-end tests

Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
npm package: @modestos/is-in
Description: A tiny utility to check if a value is included in a list or multiple values, with support for array or flattened arguments.
Author: ModestosV
Latest version: 1.0.1

# is-in

A tiny utility to check if a value is included in a list or multiple values, with support for array or flattened arguments.

This lets you check whether a value belongs to a collection by placing the item first, just like Python’s value in list syntax.

---
# Usage

```bash
import { isIn } from 'is-in';

// Check using an array
console.log(isIn(3, [1, 2, 3])); // true

// Check using multiple arguments (flattened)
console.log(isIn('a', 'a', 'b', 'c')); // true

// With enums
enum Color {
  Red = 'red',
  Blue = 'blue',
  Green = 'green',
}

console.log(isIn(Color.Red, [Color.Red, Color.Green])); // true
console.log(isIn(Color.Blue, Color.Red, Color.Green)); // false
```