open-index/open-npm huggingface dataset:
npm package: @mikelgo/ts-guards
Description: typescript guards 
Author: mikelgo
Latest version: 1.1.0

# ts-guards

This library provides a small set of utility functions for checking the types of various
data types like: object, array, number, boolean and string.

## Get started

To get started simply add the library to your project by `npm install @mikelgo/ts-guards` and simply
use the utility functions where you need it. E.g.:

```typescript
import { isString } from "@mikelgo/ts-guards";

// somewhere in your code
function heavyComputation(arg: any) {
  if (isString(arg)) {
    // do something
  }
}
```

### Important hint
The utility function `isObject` will *not* return `true` for `null` and `array`'s. This is by design.

The default JavaScript-behavior of treating arrays and also null-values as objects, is in a lot of 
cases not what you usually want. To prevent this you, usually need additional checks like 
`if (typeof something === 'object' && !Array.isArray(something))`. This library will already take care of such things.

## Included type guards
* `isArray`
* `isObject`
* `isBoolean`
* `isNumber`
* `isString`
* `isFile`
npm package: @mikelgo/ts-guava
Description: A collection of TypeScript utility functions
Author: Mikelgo
Latest version: 1.1.2

[![npm](https://img.shields.io/github/package-json/v/mikelgo/ts-guava?style=flat-square)](https://www.npmjs.com/package/mikelgo/ts-utils)
[![npm](https://img.shields.io/circleci/build/github/mikelgo/ts-guava/master?style=flat-square&token=9bb3fb5d157d1879a923930910ee034891bf15a9)](https://www.npmjs.com/package/mikelgo/ts-guava)
[![npm](https://img.shields.io/npm/l/@mikelgo/ts-guava?style=flat-square)](https://www.npmjs.com/package/mikelgo/ts-guava)
[![codecov](https://codecov.io/gh/mikelgo/ts-guava/branch/master/graph/badge.svg)](https://codecov.io/gh/mikelgo/ts-guava)

# Ts-guava

Ts-guava is a small library providing some TypeScript utility functions to deal with objects and arrays. The libraries aim is
to provide the Google Guava utilities to the TypeScript world.

## Installation

Use npm to install:

```bash
    $ npm i @mikelgo/ts-guava
```

## Usage

Just import the util-function you want to use by importing it from the lib.

Example:

```typescript
import {isValid} from '@mikelgo/ts-guava/common-utils'

    if(isValid(somethingToCheck){
        // ...execute some code
    })
```

## Overview

Currently the library does support 12 utility-functions.

### Common utils

- `isValid`
- `isNotValid`
- `isObject`
- `isNotObject`
- `isObjectOrArray`
- `isNotObjectOrArray`
- `noNullValues`
- `notNull`
- `assignValid`

### Array utils

- `isArray`
- `isNotArray`
- `isEmptyArray`
- `isNotEmptyArray`
- `allValuesInArrayAreEqual`
- `allValuesInArrayAreNotEqual`

For the full documentation see:

- [Object utils doc](./src/common/README.md)
- [Array utils doc](./src/array/README.md)

## Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

## License

[MIT](https://choosealicense.com/licenses/mit/)
npm package: @mikelgo/ts-utils
Description: A collection of TypeScript utility functions
Author: Mikelgo
Latest version: 1.2.0

[![npm](https://img.shields.io/github/package-json/v/mikelgo/ts-utils?style=flat-square)](https://www.npmjs.com/package/mikelgo/ts-utils)
[![npm](https://img.shields.io/circleci/build/github/mikelgo/ts-utils/master?style=flat-square&token=9bb3fb5d157d1879a923930910ee034891bf15a9)](https://www.npmjs.com/package/mikelgo/ts-utils)
[![npm](https://img.shields.io/npm/l/@mikelgo/ts-utils?style=flat-square)](https://www.npmjs.com/package/mikelgo/ts-utils)
[![codecov](https://codecov.io/gh/mikelgo/ts-utils/branch/master/graph/badge.svg)](https://codecov.io/gh/mikelgo/ts-utils)

# Ts-utils

Ts-utils is a small library providing some TypeScript utility functions to deal with objects and arrays.

## Installation

Use npm to install:

```bash
    $ npm i @mikelgo/ts-utils
```

## Usage

Just import the util-function you want to use by importing it from the lib.

Example:

```typescript
import {isValid} from '@mikelgo/ts-utils/common-utils'

    if(isValid(somethingToCheck){
        // ...execute some code
    })
```

## Overview

Currently the library does support 12 utility-functions.

### Common utils

- `isValid`
- `isNotValid`
- `isObject`
- `isNotObject`
- `isObjectOrArray`
- `isNotObjectOrArray`
- `noNullValues`
- `notNull`

### Array utils

- `isArray`
- `isNotArray`
- `isEmptyArray`
- `isNotEmptyArray`
- `allValuesInArrayAreEqual`
- `allValuesInArrayAreNotEqual`

For the full documentation see:

- [Object utils doc](./src/common/README.md)
- [Array utils doc](./src/array/README.md)

## Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

## License

[MIT](https://choosealicense.com/licenses/mit/)
npm package: @mikeljames/draft-js-drag-n-drop-upload-plugin
Description: Dropping & uploading files with DraftJS
Author: Benjamin Kniffler
Latest version: 2.0.1

# DraftJS Drag & Drop File Upload Plugin

*This is a plugin for the `draft-js-plugins-editor`.*

This plugin adds dropping & uploading files functionality to your editor!

Usage:

```js
import createDndFileUploadPlugin from 'draft-js-drag-n-drop-upload-plugin';

const dndFileUploadPlugin = createDndFileUploadPlugin();
```
npm package: @mikeljames/draft-js-video-plugin
Description: Video Plugin for DraftJS
Author: Anchen li
Latest version: 2.0.1

# DraftJS Video Plugin

*This is a plugin for the `draft-js-plugins-editor`.*

This plugin allows you to copy a video url and paste the Videos to your editor!
but default it handles youtube and vimeo, but you can always write your own logic to handle you desired video source see more details at advanced usage.

### Getting Started

npm install draft-js-video-plugin --save

Basic Usage:

```js
import createVideoPlugin from 'draft-js-video-plugin';

const videoPlugin = createVideoPlugin();
```
npm package: @mikeljames/react-draft-wysiwyg
Description: A wysiwyg on top of DraftJS.
Author: Jyoti Puri
Latest version: 1.10.12-mjames-fork-0.4

# React Draft Wysiwyg

A Wysiwyg editor built using ReactJS and DraftJS libraries.
[Demo Page](https://jpuri.github.io/react-draft-wysiwyg).

[![Build Status](https://travis-ci.org/jpuri/react-draft-wysiwyg.svg?branch=master)](https://travis-ci.org/jpuri/react-draft-wysiwyg)

![](http://i.imgur.com/tU7kJ6i.gif)

## Features
- Configurable toolbar with option to add/remove controls.
- Option to change the order of the controls in the toolbar.
- Option to add custom controls to the toolbar.
- Option to change styles and icons in the toolbar.
- Option to show toolbar only when editor is focused.
- Support for inline styles: Bold, Italic, Underline, StrikeThrough, Code, Subscript, Superscript.
- Support for block types: Paragraph, H1 - H6, Blockquote, Code.
- Support for setting font-size and font-family.
- Support for ordered / unordered lists and indenting.
- Support for text-alignment.
- Support for coloring text or background.
- Support for adding / editing links
- Choice of more than 150 emojis.
- Support for mentions.
- Support for hashtags.
- Support for adding / uploading images.
- Support for aligning images, setting height, width.
- Support for Embedded links, flexibility to set height and width.
- Option provided to remove added styling.
- Option of undo and redo.
- Configurable behavior for RTL and Spellcheck.
- Support for placeholder.
- Support for WAI-ARIA Support attributes
- Using editor as controlled or un-controlled React component.
- Support to convert Editor Content to HTML, JSON, Markdown.
- Support to convert the HTML generated by the editor back to editor content.
- Support for internationalization.

## Installing
The package can be installed from npm `react-draft-wysiwyg`

## Getting started
Editor can be used as simple React Component:
```js
import { Editor } from 'react-draft-wysiwyg';
import 'react-draft-wysiwyg/dist/react-draft-wysiwyg.css';
<Editor
  editorState={editorState}
  toolbarClassName="toolbarClassName"
  wrapperClassName="wrapperClassName"
  editorClassName="editorClassName"
  onEditorStateChange={this.onEditorStateChange}
/>
```

## Docs
For more documentation check [here](https://jpuri.github.io/react-draft-wysiwyg/#/docs?_k=jjqinp).

## Questions Discussions
For discussions join public channel #rd-wysiwyg in [DraftJS Slack Organization](https://draftjs.herokuapp.com/).

## Thanks
Original motivation and sponsorship for this work came from [iPaoo](http://www.ipaoo.com/). I am thankful to them for allowing the Editor to be open-sourced.

## License
MIT.
npm package: @mikeljames/react-native-in-app-browser
Description: `yarn add @medapps/react-native-in-app-browser`
Author: Mike James
Latest version: 1.0.6

# react-native-in-app-browser

`yarn add @medapps/react-native-in-app-browser`

# API

This component wraps [WebView](https://github.com/react-native-webview/react-native-webview/blob/HEAD/docs/Reference.md), props are passed down to this component

### Non React Context

```js
import {openURL} from '@medapps/react-native-in-app-browser';

openURL(url); // opens url
```

### React Context

```js
import {useInAppBrowser} from '@medapps/react-native-in-app-browser';

function ExampleComponent() {
  const {open, close, url, isOpen} = useInAppBrowser();

  return (
    <Touchable onPress={() => open({url})}>
      <Text>Open!</Text>
    </Touchable>
  );
}
```