open-index/open-npm huggingface dataset:
npm package: @mofon-design/csstype
Description: Strict TypeScript types for style based on MDN data (fork from frenic)
Latest version: 1.0.0

# CSSType

[![npm](https://img.shields.io/npm/v/@mofon-design/csstype.svg)](https://www.npmjs.com/package/@mofon-design/csstype)

TypeScript definitions for CSS, fork from https://github.com/frenic/csstype.

```ts
import { CSSType } from '@mofon-design/csstype';

const style: CSSType.Properties = {
  colour: 'white', // Type error on property
  textAlign: 'middle', // Type error on value
};
```

## Getting started

```sh
$ npm install @mofon-design/csstype
$ # or
$ yarn add @mofon-design/csstype
```
npm package: @mog13/dxjs
Description: Typescript dice engine
Author: Morgan Sands
Latest version: 2.0.1

## DXJS

DXJS is a library for simulating dice rolls commonly used in tabletop games. It provides a range of standard
dice from d2 to d100, as well as the ability to define and roll custom dice. The library allows dice rolls to be
specified both programmatically and via an interpreted string format, making it highly versatile for various use-cases.

### Installation
```bash
npm install @mog13/dxjs
```

### Usage
```javascript
const { Dice, roll } = require('@mog13/dxjs');

// roll standard dx dice
roll("d20"); // 1-20
roll("2d20 + 1d6"); // 3-46
roll("d1+d2+d3+d4+d5+d6+d7+d8+d9"); // 9-45

// create your own dice
const myNewDice = new Dice("myNewDice", [0,25,50,75,100]);
myNewDice.roll(); // 0-100
roll("myNewDice"); // 0-100
roll("5myNewDice * d4"); // 0-2000


```
npm package: @mogamitsuchikawa/markdown-it-mermaid
Description: Mermaid plugin for markdown-it.
Author: Mogami Tsuchikawa
Latest version: 0.2.6

# markdown-it-mermaid

Mermaid plugin for markdown-it.


## Installation

```
yarn install markdown-it-mermaid
```


## Usage

```js
import markdownIt from 'markdown-it'
import markdownItMermaid from 'markdown-it-mermaid'
const mdi = markdownIt()
mdi.use(markdownItMermaid)
mdi.render(`\`\`\`mermaid
graph TD
    A[Christmas] -->|Get money| B(Go shopping)
    B --> C{Let me think}
    C -->|One| D[Laptop]
    C -->|Two| E[iPhone]
    C -->|Three| F[Car]
\`\`\``)
```

### Customize mermaid

```js
mdi.mermaid.loadPreferences({
  get: key => {
    if (key === 'mermaid-theme') {
      return 'forest'
    } else if (key === 'gantt-axis-format') {
      return '%Y/%m/%d'
    } else {
      return undefined
    }
  }
})
```

You can `loadPreferences` from any preferences store as long as it supports the `get` method. For example, you can use `js-cookie` library as a preferences store. Or you can write your own preferences store to achieve more flexibility.

`mdi.mermaid.loadPreferences` not only applies the preferences, it also return the preferences loaded. Just in case you need to access the loaded preferences.

`mdi.mermaid.loadPreferences` could be invoked multiple times. And the preferences applied later will override ones applied earlier.


## Development

### Build

```
yarn build:watch
```

### Test

```
yarn test
```

### Distribution

```
yarn release && npm publish
```


## Todo

`gantt-axis-format` should support large date ranges
npm package: @mogeko/is-plain-object
Description: Returns true if an object was created by the `Object` constructor, or Object.create(null)
Author: Zheng Junyi
Latest version: 0.0.3

# is-plain-object

> Returns true if an object was created by the `Object` constructor, or Object.create(null).

This project originated from [is-plain-object](https://github.com/jonschlinkert/is-plain-object) (released under [MIT license](https://github.com/jonschlinkert/is-plain-object/blob/master/LICENSE)). I reimplemented it by TypeScript.

## Usage

With ES modules:

```ts
import { isPlainObject } from "is-plain-object";
```

**true** when created by the `Object` constructor, or `Object.create(null)`.

```ts
isPlainObject(Object.create({})); // => true
isPlainObject(Object.create(Object.prototype)); // => true
isPlainObject({ foo: "bar" }); // => true
isPlainObject({}); // => true
isPlainObject(Object.create(null)); // => true
```

**false** when not created by the `Object` constructor.

```ts
isPlainObject(["foo", "bar"]); // => false
isPlainObject([]); // => false
isPlainObject(new Foo()); // => false
```

## License

The [original project](https://github.com/jonschlinkert/is-plain-object) is released under the [MIT License](https://github.com/jonschlinkert/is-plain-object/blob/master/LICENSE).

The code in this project is released under the [MIT License](./LICENSE).
npm package: @mogeko/tmdb-api
Description: A HTTP client for TMDB APIs
Author: Zheng Junyi
Latest version: 0.1.8

# tmdb-api.js

> **Warning** Not ready for production.

A HTTP client for the [The Movie Database API](https://developer.themoviedb.org/reference/intro/getting-started).

## License

The code in this project is released under the [MIT License](./LICENSE).
npm package: @mogeko/tsconfig
Description: `tsconfig.json` files for sharing
Author: Mogeko
Latest version: 0.0.8

# tsconfig

This package provides `tsconfig.json` files for sharing.

## `default.tsconfig.json`

```json
{
  "$schema": "https://json.schemastore.org/tsconfig",
  "extends": "@tsconfig/strictest/tsconfig.json",
  "compilerOptions": {
    "target": "ESNext",
    "module": "ESNext",
    "moduleResolution": "Bundler",
    "allowJs": true,
    "verbatimModuleSyntax": true,
    "noEmit": true
  }
}
```

## License

The code in this package under the [MIT License](./LICENSE).
npm package: @mogeko/utils
Description: Useful function snippets for Node.js
Author: Mogeko
Latest version: 0.7.4

# @mogeko/utils

[![Monorepo Build](https://github.com/mogeko/mogeko/actions/workflows/mono-build.yml/badge.svg)](https://github.com/mogeko/mogeko/actions/workflows/mono-build.yml)
[![CodeQL](https://github.com/mogeko/mogeko/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/mogeko/mogeko/actions/workflows/github-code-scanning/codeql)
[![codecov](https://codecov.io/gh/mogeko/mogeko/graph/badge.svg?token=WU7ZGP8Y3F)](https://codecov.io/gh/mogeko/mogeko)

Useful function snippets for Node.js.
npm package: @mogelijk_technologies/iban-to-bic
Description: Determines the SWIFT BIC of an IBAN.
Author: Mogelijk-Technologies
Latest version: 1.3.0

# iban-to-bic

[![GitHub license](https://img.shields.io/github/license/sigalor/iban-to-bic)](https://github.com/sigalor/iban-to-bic/blob/master/LICENSE) [![npm](https://img.shields.io/npm/v/iban-to-bic)](https://www.npmjs.com/package/iban-to-bic) [![Unit tests workflow status](https://github.com/sigalor/iban-to-bic/actions/workflows/tests.yaml/badge.svg)](https://github.com/sigalor/iban-to-bic/actions/workflows/tests.yaml)

Determines the SWIFT BIC of an IBAN. Currently supports IBANs from the following countries: Austria, Belgium, Germany, Luxembourg, Netherlands, Spain, France.

## Usage

```javascript
const { ibanToBic } = require('iban-to-bic');

const bic = ibanToBic('DE51500105179975341634');
// bic is now "INGDDEFFXXX"
```

`ibanToBic` returns undefined if the IBAN is invalid (checked internally using [ibantools](https://github.com/Simplify/ibantools)) or if no corresponding BIC was found.

## Usage in PHP

```php
use Mogelijk\IbanToBic;

$bic = (new IbanToBic())->ibanToBic('DE51500105179975341634');
// $bic is now "INGDDEFFXXX"
```

## Usage in the browser

iban-to-bic is really simple to use inside a browser. You can either pull the package from npm and build it with your favorite packaging tool or you can use it from a CDN like this:

```html
<script type="text/javascript" src="https://unpkg.com/iban-to-bic@latest/dist/iban-to-bic.js">
```

Or

```html
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/iban-to-bic@latest/dist/iban-to-bic.js">
```

And then invoke it like this:

```html
<script type="text/javascript">
	window.ibanToBic.ibanToBic('********');
</script>
```

Using this code makes it super comfortable to validate user input and provide auto-fill to your application.

## Updating the dataset

The following will fetch the newest data from the respective national bank authorities (e.g. Bundesbank in Germany or OeNB in Austria) and regenerate the files in the `datasets` and the `datasets-extended` directory:

```shell
npm run generate
```

For Spain and France, data directly from the European Central Bank is used, see [here](https://www.ecb.europa.eu/stats/financial_corporations/list_of_financial_institutions/html/monthly_list-MID.en.html).

## License

MIT