open-index/open-npm huggingface dataset:
npm package: @geekie/geekie-image
Description: Geekie Image Plugin for DraftJS
Author: xumm_12
Latest version: 0.0.15

# geekie-image

DrafJS Plugin that adds image support. This is a fork of the
@draft-js-plugins/image package. It adds features like image loading and
resizing.

## Basic usage

```tsx
import React, { ReactElement } from 'react';
import { DraftailEditor as Editor, INLINE_STYLE } from 'draftail';
import createImagePlugin, {
  registerUploadImageTask,
} from '@geekie/geekie-image';
import 'draftail/dist/draftail.css';

const imagePlugin = createImagePlugin();
const plugins = [imagePlugin];

// Register how to upload the selected image
registerUploadImageTask(() =>
  Promise.resolve('https://picsum.photos/1000/700')
);

const SimpleImageEditor = (): ReactElement => (
  <div>
    <Editor
      topTool
      controls={[imagePlugin.control]}
      inlineStyles={[
        { type: INLINE_STYLE.BOLD },
        { type: INLINE_STYLE.ITALIC },
      ]}
      entityTypes={[imagePlugin.entityType]}
      plugins={plugins}
    />
  </div>
);

export default SimpleImageEditor;
```

## Setup

```bash
yarn
```

## Running in storybook

```bash
yarn storybook
```

## Publishing

Edit the packages/image/package.json by yourself.

```bash
yarn build
cd packages/image && npm publish
```
npm package: @geekie/geekie-katex
Description: Geekie Katex Plugin for DraftJS
Latest version: 0.0.24

# geekie-katex

## Basic usage

```
import React from "react";
import { DraftailEditor } from "draftail";
import createKatexPlugin from "@geekie/geekie-katex";

const katexPlugin = createKatexPlugin();

export default = () => (
  <DraftailEditor
    entityTypes={[katexPlugin.entityType]}
    controls={[katexPlugin.control]}
    plugins={[katexPlugin]} 
  />
);

```
npm package: @geekie/geekie-linkify
Description: Geekie Link Plugin for DraftJS
Latest version: 0.0.4

# geekie-linkify

## Basic usage

```
import React from "react";
import { DraftailEditor } from "draftail";
import createLinkifyPlugin from "@geekie/geekie-linkify";


const linkifyPlugin = createLinkifyPlugin();

export default = () => (
  <DraftailEditor
    entityTypes={[linkifyPlugin.entityType]}
    plugins={[linkifyPlugin]} 
  />
);

```
npm package: @geekie/geekie-symbol
Description: Geekie Symbol Plugin for DraftJS
Author: xumm_12
Latest version: 0.0.4

# geekie-image

DrafJS Plugin that adds symbol support. This is a fork of the
@draft-js-plugins/symbol package.

## Setup

```bash
yarn
```

## Running in storybook

```bash
yarn storybook
```

## Publishing

Edit the packages/symbol/package.json by yourself.

```bash
yarn build
cd packages/symbol && npm publish
```
npm package: @geekie/irt
Description: IRT tools in JavaScript
Latest version: 1.0.0

# `@geekie/irt`

[![npm](https://badgen.net/npm/v/@geekie/irt)](https://npmjs.org/@geekie/irt)
[![License](https://badgen.net/badge/license/MIT/blue)](LICENSE)
[![Travis](https://badgen.net/travis/geekie/irt-js)](https://travis-ci.com/geekie/irt-js)
[![Codecov](https://badgen.net/codecov/c/github/geekie/irt-js)](https://codecov.io/gh/geekie/irt-js)
[![Prettier](https://badgen.net/badge/code%20style/prettier/ff69b4)](https://github.com/prettier/prettier)

IRT tools in JavaScript

## About

This library contains JavaScript implementations of functions related to [Item Response Theory](https://en.wikipedia.org/wiki/Item_response_theory) logistic models.

### Usage

- `itemResponseFunction(zeta: Zeta, theta: number)`

Calculates the probability that a person with the given ability level theta will answer correctly an item.

`zeta` is an object with the 3 parameters: `{a, b, c}`

- `information(zeta: Zeta, theta: number)` | `information(zetaArray: Array<Zeta>, theta: number)`

Calculates how much information an item (or an array of items) contributes for a given ability level theta.

- `estimateAbilityEAP(answers: Array<0 | 1>, zetaArray: Array<Zeta>)`

Estimate a person's ability using the EAP method ([reference](https://link.springer.com/article/10.1007/BF02293801)).

`answers` is an array of `0` or `1` representing if the answer given is correct, related to the items of `zetaArray`. `1` means the answers is correct.

Example: `answers[0]` represents if the person answered the item related to `zetaArray[0]`.
npm package: @geekjuice/cash
Description: ephemeral local cache
Author: nicholas hwang
Latest version: 0.0.1

# [cash](https://github.com/geekjuice/cash)

> ephemeral local cache

## install

```
❯ npm install --global @geekjuice/cash
```

### usage

**basic**

```typescript
import { cache } from '@geekjuice/cash';

export default (key: string, ...rest) =>
  cached<number>(key, async (): number => expensive(...rest));
```

**custom transform/parse**

```typescript
import { cache } from '@geekjuice/cash';

export default (key: string, ...rest) =>
  cached<number>(
    key,
    async (): number => expensive(...rest),
    (to: number): string => `{ "cached": ${to} }`,
    (from: string): number => JSON.parse(from).cached
  );
```

### license

[mit](license.md)
npm package: @geekjuice/fresh
Description: fresh dependencies
Author: nicholas hwang
Latest version: 1.3.0

# fresh

> fresh dependencies

## install

```
$ npm install --global @geekjuice/fresh
```

## usage

```
$ fresh --help

  fresh dependencies

  usage: fresh [options]

  options:
    --wanted   use wanted versions
    --latest   use latest versions
    --force    skip confirmation

```

## license

[mit](license.md)
npm package: @geekjuice/lxy
Description: learn x in y minutes
Author: nicholas hwang
Latest version: 1.0.0

# lxy

> learn x in y minutes

## install

```
$ npm install --global @geekjuice/lxy
```

## usage

```
$  lxy --help

  learn x in y minutes

  usage: lxy [thing]

  options:
    -t, --things   list things to learn
    -h, --help     show help
    -v, --version  show version

```

## License

[MIT](license.md)
npm package: @geekjuice/style
Description: personal style cli
Author: nicholas hwang
Latest version: 2.4.0

# @geekjuice/style

> style

personal style guide and configuration manager

features include:

- **minimal dependency management.** package come pre-bundled with:
  - [`eslint`](https://eslint.org)
  - [`prettier`](https://prettier.io)
  - [`husky`](https://github.com/typicode/husky)
  - [`lint-staged`](https://github.com/okonet/lint-staged)
- **sensible configurations.** consistent styles and process that just work™
- **javascript and typescript.** configured to handle both
- **opinionated.** because personal :man_shrugging:

## getting started

to start the guided setup process:

```sh
❯ npx @geekjuice/style install
```

## commands

### `install`

this command is used to initially setup your project by:

- updating your `package.json` to include the necessary dependencies and scripts
- adding (or replacing) the following configuration files:
  - `.eslintrc.js`
  - `.prettierrc.js`
  - `.huskyrc.js`
  - `.lintstagedrc.js`

the command can be re-run to set your project up again or pick up updates.

### `check`

used to check files for linting and formatting issues without actually making changes. underneath the hood this command is running the following in parallel:

- `eslint` against all javascript and typescript files unless files specified
- `prettier --check` against many supported file types unless files specified

### `fix`

similar to `check`, but will attempt to fix problems if possible. underneath the hood this command is running the following in serial:

- `eslint --fix` against all javascript and typescript files unless files specified
- `prettier` against many supported file types unless files specified

## license

[mit](license) - copyright © [nicholas hwang](https://undefined.engineer)
npm package: @geekjuice/verse
Description: cli for genius lyrics
Author: nicholas hwang
Latest version: 2.2.0

# [verse](https://github.com/geekjuice/verse)

> cli for genius lyrics

## install

```
❯ npm install --global @geekjuice/verse
```

## cli

```
❯ verse --help

  cli for genius lyrics

  usage: verse [options] [query]

  options:
    -f, --filepath  path to configuration      [~/.verse]
    -s, --select    select from query results
    -c, --clear     clear genius api token
    -v, --version   show version
    -h, --help      show help

```

### usage

```
❯ verse "humble - kendrick lamar"


HUMBLE. by Kendrick Lamar


[Intro]
Nobody pray for me
It's been that day for me
Waaaaay (Yeah, yeah!)

...

```

### license

[mit](license.md)