open-index/open-npm huggingface dataset:
npm package: @mreduar/iso-4217-currencies
Description: Simply a list of ISO-4217 currencies with name, code, symbol, &amp; decimal rounding
Author: Matthew J. Martin
Latest version: 0.2.6

# ISO-4217 Currencies

Simply a list of ISO-4217 currencies with name, code, symbol, &amp; decimal rounding. Also, support for figuring out the currency based on ISO-3166-1 Alpha-2 country code.


## Basic Usage

```JavaScript

// include it
const lib = require('@mreduar/iso-4217-currencies');

// get metadata for a specific currency code
const usd = lib.currency('USD');
// {
//   "symbol": "$",
//   "name": "US Dollar",
//   "symbolNative": "$",
//   "decimalDigits": 2,
//   "rounding": 0,
//   "code": "USD",
//   "namePlural": "US dollars"
// }

// get currency metadata by country code
const eur = lib.currency('FR');
// {
//   "symbol": "€",
//   "name": "Euro",
//   "symbolNative": "€",
//   "decimalDigits": 2,
//   "rounding": 0,
//   "code": "EUR",
//   "namePlural": "euros"
// }

// get currency code for a country code
const code = lib.codeForCountry('CM');
// "XAF"
```

## Exported API

```JavaScript
const lib = require('@mreduar/iso-4217-currencies');

const {
  // array of currency codes
  // ['AED', 'AFN', ...]
  codes,

  // array of currency metadata
  // [
  //   {
  //     "symbol": "AED",
  //     "name": "United Arab Emirates Dirham",
  //     "symbolNative": "د.إ.‏",
  //     "decimalDigits": 2,
  //     "rounding": 0,
  //     "code": "AED",
  //     "namePlural": "UAE dirhams"
  //   },
  //   ...
  // ]
  currencies,

  // hash map of currency metadata indexed by currency code
  // {
  //   "AED": {
  //     "symbol": "AED",
  //     "name": "United Arab Emirates Dirham",
  //     "symbolNative": "د.إ.‏",
  //     "decimalDigits": 2,
  //     "rounding": 0,
  //     "code": "AED",
  //     "namePlural": "UAE dirhams"
  //   },
  //   ...
  // }
  map,

  // domain-specific errors thrown if currency code was not found:
  CurrencyNotFoundError,

  // domain-specific errors thrown if no currency code found for country code:
  CountryCurrencyNotFoundError,

} = lib;
```


## Why?

Most solutions available are super overkill, not distributed as packages (e.g. gist), and/or out of date.

## Credits

Original inspiration was from [Kent Safranski](https://github.com/Fluidbyte) in the form of [this helpful Gist](https://gist.github.com/Fluidbyte/2973986)
npm package: @mregydev/intllib
Description: Made with create-react-library
Latest version: 1.1.0

# @mregydev/intllib

> Made with create-react-library

[![NPM](https://img.shields.io/npm/v/@mregydev/intllib.svg)](https://www.npmjs.com/package/@mregydev/intllib) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Install

```bash
npm install --save @mregydev/intllib
```

## Usage

```tsx
import React, { Component } from 'react'

import MyComponent from '@mregydev/intllib'
import '@mregydev/intllib/dist/index.css'

class Example extends Component {
  render() {
    return <MyComponent />
  }
}
```

## License

MIT © [](https://github.com/)
npm package: @mreinlaender/ensure
Description: Small TypeScript util to safely access member of objects marked as optional or possible null / undefined
Author: Jan Marten Reinländer
Latest version: 1.0.0

# ensure

Small TypeScript util to remove the necessity for explicit null / undefined checks when working with optional / null / undefined members (like in DTOs)

Just add members to check and destruct

## what it does

Will create a copy of a supplied object and either

- check all members for null / undefined
- check the members you supplied keys for

and adjust the resulting type accordingly.

WILL THROW IF ANY CHECKED MEMBER IS NULL / UNDEFINED

## usage

```
 interface SomeDto {
    id: string | undefined;
    test?: string;
 };

 const example = async () => {
    const someDto: SomeDto = await fetch(...).then(...);

    const {id, test} = ensure(someDto, "id", "test");

    ...

    // the values of id and test are now both just string
    // no further checks needed
 }
```
npm package: @mrenke/randomid-generator
Description: The simple package implemented during 10-Month long Coding Bootcamp by Kodilla.
Author: Mikolaj Renke
Latest version: 1.0.9

# @mrenke/randomid-generator

The simple package implemented during 10-Month long Coding Bootcamp by Kodilla. 

## 1. What Does it do?
    
The package is responsible for creating random ID strings. 

## 2. How to Use? 
    
To implement this Package follow the steps below. 

### 2.1. **Download**

> **Yarn**
> 
> `yarn add @mrenke/randomid-generator`
 
> **NPM**   
> 
> `npm install @mrenke/randomid-generator`

### 2.2. **Import in File**

> **require**
> 
> `const randomID = require('@mrenke/randomid-generator');`

> **import**
> 
> `import randomID from '@mrenke/randomid-generator'`

### 2.3. **Call a function**

> `randomID()`

Need to change id lenght? No worries, go in to the Package and change
idLength parameter.

**Enjoy!**

## 3. Usage

This function is useful in generating random ID's for the objects.
**Caution**: This generator does not contain duplicate check.
Even though it is very unlikely to create two duplicated ID's, this might happen. 
Please have that in mind when using this package. 

## 4. Troubleshooting
npm package: @mreycode/chat-react
Description: A reusable, embeddable chat simulator component library for React, distributed as an NPM package.
Latest version: 0.0.1

# Chat React

A reusable, embeddable chat simulator component library for React, distributed as an NPM package.

**Author**

- Jon Rey Galera <jonreygalera@gmail.com>
- Frederick Layus Jr. <fredericklayus@gmail.com>

**Portfolio**  
[https://jonreygalera.vercel.app/](https://jonreygalera.vercel.app/)
npm package: @mreycode/utils
Description: Shared utilities
Author: Jon Rey Galera
Latest version: 0.0.2
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# MrEYCode utils

## Available utilities:

### Custom hooks

- useEventListener
  > useEventListener(eventType,callback,element = window)

```js
import { useEventListener } from "@mreycode/utils";
```

- useScreenType

```js
Example Usage
import { useScreenType } from "@mreycode/utils";
const screentType = useScreenType();
console.log(screentType);
// type: mobile, tablet, laptop, desktop, largeDesktop
// Output:
// { type: "mobile", width: 552, height: 760 }

```

- useWindowSize

```js
Example Usage
import { useWindowSize } from "@mreycode/utils";
const {width, height} = useWindowSize();
```

- useLocalStorage
  > useLocalStorage(key = null, defaultValue = "")

```js
import { useLocalStorage } from "@mreycode/utils";
const [appTheme, setAppTheme] = useLocalStorage("theme", "dark");
```

### Checker

- isBlank
  > isBlank(value)

```js
// Example Usage
import { isBlank } from "@mreycode/utils";
console.log(isBlank(null)); // true
console.log(isBlank(undefined)); // true
console.log(isBlank("")); // true
console.log(isBlank("   ")); // true
console.log(isBlank("hello")); // false
console.log(isBlank(123)); // false
console.log(isBlank([])); // false
```

### Parser

- stringJSON
  > stringJSON(data, key = null, defaultValue = "")

```js
// Example Usage
import { stringJSON } from "@mreycode/utils";
console.log(stringJSON("[]")); // []
console.log(stringJSON('{name:"MrEYCode"}')); // { name: "MrEYCode" }
console.log(stringJSON('{name:"MrEYCode"}', "name")); // MrEYCode
console.log(stringJSON('{"name": "MrEYCode"}', "country", "Philippines")); // Philippines
```
npm package: @mrfazry/my-ui
Description: my-ui reusable React component
Author: Muhammad Redyka Fazry
Latest version: 0.1.0

# my-ui

[![Travis][build-badge]][build]
[![npm package][npm-badge]][npm]
[![Coveralls][coveralls-badge]][coveralls]

my-ui is a reusable React component using styled-components

[build-badge]: https://img.shields.io/travis/user/repo/master.png?style=flat-square
[build]: https://travis-ci.org/user/repo

[npm-badge]: https://img.shields.io/npm/v/npm-package.png?style=flat-square
[npm]: https://www.npmjs.org/package/npm-package

[coveralls-badge]: https://img.shields.io/coveralls/user/repo/master.png?style=flat-square
[coveralls]: https://coveralls.io/github/user/repo
npm package: @mrfigg/typedoc-plugin-lib-utils
Description: Miscellaneous utility functions for TypeDoc plugins
Author: MrFigg
Latest version: 1.3.1

# @mrfigg/typedoc-plugin-lib-utils

Miscellaneous utility functions for TypeDoc plugins.

## API

For full API documentation see [https://mrfigg.github.io/typedoc-plugin-lib-utils](https://mrfigg.github.io/typedoc-plugin-lib-utils).