open-index/open-npm huggingface dataset:
npm package: @kimkun07/mindmap_mind-api
Description: mind-api
Author: kimkun07
Latest version: 1.0.4

## About

`mind-api` is an API for `MindElixir` Project.\
It is used for an endpoint of server providing data for a mindmap.

Related Link

- [NPM package](https://www.npmjs.com/package/@kimkun07/mindmap_mind-api)
- [mind-elixir-core-revised](https://github.com/kimkun07/mindmap_mind-elixir-core-revised)
- [Server - Notion Subpage Tree](https://github.com/kimkun07/mindmap_notion-subpage-tree)
- [Client - Mindmap Drawer](https://github.com/kimkun07/mindmap_mind-elixir-client)

<details>
<summary>Table of Contents</summary>

- [How to use](#how-to-use)
  - [Install `mind-api`](#install-mind-api)
  - [Provide `MindResponse`](#provide-mindresponse)
  - [Fetch `MindResponse`](#fetch-mindresponse)
- [How to develop](#how-to-develop)

</details>

## How to use

- Install `mind-api`
- Server
  - Provide `MindResponse`
- Client
  - Fetch `MindResponse`

### Install `mind-api`

```bash
npm i -D @kimkun07/mindmap_mind-api
```

### Provide `MindResponse`

```ts
import { MindResponse } from "@kimkun07/mindmap_mind-api";

server.get("/", async function (req: Request, res: Response) {
  let result: MindResponse = {
    status: "Page Retrieve Success",
    rawNodeData: await get_node(process.env.NOTION_PAGE_ID_ROOT!), // NodeObj
  };
  res.json(result); // json of MindResponse
});
```

### Fetch `MindResponse`

```ts
import { MindResponse } from "@kimkun07/mindmap_mind-api";

let httpResponse = await fetch(url);
let mindResponse: MindResponse = await httpResponse.json();
```

## How to develop

1. Publish to npm
   ```bash
   npm run build
   npm version patch
   npm publish --access public
   ```
2. Update from usage
   ```bash
   npm outdated
   npm update @kimkun07/mindmap_mind-api
   ```
npm package: @kimlikdao/kdjs
Description: A JavaScript to JavaScript compiler focused on advanced optimizations.
Author: KimlikDAO
Latest version: 0.0.3

# KimlikDAO js compiler

Primarily wraps Google Closure Compiler (GCC) and UglifyJS but adds additional functionality
to GCC such as ability to compile es6 modules.

```shell
bun kdjs/kdjs.js entry.js
```

`kdjs` will automatically crawl all the imported files from the entry.js and include the externs files for libraries that it recognizes.
npm package: @kimlikdao/lib
Description: KimlikDAO JavaScript library
Author: KimlikDAO
Latest version: 0.0.1

# Nedir?
kimlikdao-js, KimlikDAO projeleri için gerekli olan javascript modüllerinin tutulduğu repodur.

# Dizin yapısı

`api`: Standart protokol tanımları (örneğin: jsonrpc, oauth2)

`birimler`: Birim sistemi ile ilgili araçlar ve tanımlar

`cloudflare`: Cloudflare Workers platformu ile ilgili tanımlar

`crosschain`: Tüm blokzincirlerde geçerli tanımlar ve yapılar

`crypto`: Kriptografik fonksiyonlar ve kitaplıklar

`did`: KimlikDAO'nun DID ve KPass tanımları

`ethereum`: Ethereum node'ları ile etkileşim araçları

`node`: KimlikDAO protocol node'larıyla konuşurken gerekli tanımlar

`testing`: Test yazma kütüphaneleri

`util`: Çevirme araçları ve extern tanımları

# Nasıl klonlanır?

```shell 
git clone https://github.com/KimlikDAO/kimlikdao-js
cd kimlikdao-js
bun i
``` 
komutları ile repoyu yerel geliştirme ortamına klonlanıp sonra reponun çalışması için gerekli olan paketler indirilir.

# Testler

Bu repoda iki tür test var:
* `compiled-test`: Makefile kullanarak GCC (Google Closure Compiler) ile derlenip bun veya tarayıcı ortamında çalıştırılan testler.
* `bun test`: Bun test koşucusu ile bun ortamında çalıştırılan testler.

### compiled-test'ler nasıl çalıştırılır?

`compiled-test`'ler hem GCC ile derlenerek hem de doğrudan `bun` ortamında
çalıştırılabilir.
Örnek olarak `crypto/test/modular.compiled-test.js`'i çalıştırmak için ya
```shell
make build/crypto/test/modular.compiled-test.js
bun build/crypto/test/modular.compiled-test.js
```
yazabiliriz ya da doğrudan
```shell
bun crypto/test/modular.compiled-test.js
```
yazabiliriz. Sorunsuz çalıştırılması durumunda aşağıdaki gibi bir çıktı oluşur:

![](.github/img/modular.compiled-test.png "Örnek modular.compiled-test.js çıktısı")

### Bun testler nasıl çalıştırılır?

Bun testleri çalıştırmak için `bun test` komutunu çalıştırmak yeterli olacaktır. Sorunsuz çalıştırılması durumunda aşağıdaki gibi bir çıktı oluşur:

# Yeni modüller

Yeni bir modül eklenmesi durumunda eğer modül [dizin yapısı](#Dizin-yapısı) kısmında bahsedilen dizin içeriklerden birisine uygun ise o dizinin içine koyulabilir; değil ise, yeni bir dizin oluşturulmalı ve modül yeni dizine eklenmelidir.
npm package: @kimmel/array-shuffle
Description: Fisher-Yates shuffle of an array of items.
Author: Ryan Castner
Latest version: 1.2.1

# array-shuffle [![Build Status](https://travis-ci.org/kimmelsg/array-shuffle.svg?branch=master)](https://travis-ci.org/kimmelsg/array-shuffle) [![codecov](https://codecov.io/gh/kimmelsg/array-shuffle/badge.svg?branch=master)](https://codecov.io/gh/kimmelsg/array-shuffle?branch=master)

> [Fisher-Yates](https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle) shuffle of an array of items producing an unbiased permutation.

## Install

```
$ npm install @kimmel/array-shuffle
```

## Usage

```js
import shuffle from '@kimmel/array-shuffle';

const shuffledArray = shuffle([1, 2, 3, 4, 5, 6]);
//=> [3, 1, 2, 5, 6, 4]
```

`shuffle` does _not_ mutate the original array.

## API

### shuffle(items)

#### items

Type: `array`

`['hello', 2, 5, { foo: 'bar' }]`

## License

MIT © [Ryan Castner](https://kimmel.com)
npm package: @kimmel/dtmf
Description: Dual Tone - Multi Frequency player
Author: Ryan Castner
Latest version: 1.0.4

# dtmf [![Build Status](https://travis-ci.org/audiolion/dtmf.svg?branch=master)](https://travis-ci.org/audiolion/dtmf) [![codecov](https://codecov.io/gh/audiolion/dtmf/badge.svg?branch=master)](https://codecov.io/gh/audiolion/dtmf?branch=master)

> Dual Tone - Multi Frequency player using Web Audio API

Try the [Demo](https://kimmelsg.github.io/dtmf/)

## Install

```
$ npm install @kimmel/dtmf
```

## Usage

```js
import DTMF from '@kimmel/dtmf';

let player = new DTMF();
player.play(1);
player.play(8);
player.play(0);
player.play(0);
//=> plays DTMF sound for each key
```

## API

### DTMF(audioContext: [AudioContext](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/AudioContext#Syntax))

#### play(key: DialpadKey)

Type: `DialpadKey`, String | Number

0, 1, 2, 3, 4, 5, 6, 7, 8, 9, \*, #, A, B, C, D

## License

MIT © [Ryan Castner](https://kimmel.com)
npm package: @kimmel/github-clubhouse-importer
Description: Import Github Issues to Clubhouse
Author: Ryan Castner
Latest version: 0.2.0

## Github Clubhouse Importer

![Github Clubhouse Importer Demo](https://media.giphy.com/media/f5RDyNavjTGfUakbu9/giphy.gif)

> Import your Github Issues into Clubhouse Stories

### Installation

```shell
$ npm install -g @kimmel/github-clubhouse-importer
```

### Usage

```shell
$ ghch --help
```

**NOTE** The provided Github API Token must have Repository Scope access
npm package: @kimmel/react-outside-click-handler
Description: A React component for dealing with clicks outside its subtree
Author: Maja Wichrowska
Latest version: 2.0.0

# react-outside-click-handler

> A React component for handling outside clicks

## Usage

```jsx
import OutsideClickHandler from "react-outside-click-handler";

function MyComponent() {
  return (
    <OutsideClickHandler
      onOutsideClick={() => {
        alert("You clicked outside of this component!!!");
      }}
    >
      Hello World
    </OutsideClickHandler>
  );
}
```

For full browser support, `react-outside-click-handler` expects its consumer to include [airbnb-browser-shims](https://github.com/airbnb/browser-shims) or another similar shim. This is specifically due to the use of the [`node.contains`](https://developer.mozilla.org/en-US/docs/Web/API/Node/contains) method.

## Props

### children: `PropTypes.node.isRequired`

Since the `OutsideClickHandler` specifically handles clicks outside a specific subtree, `children` is expected to be defined. A consumer should also not render the `OutsideClickHandler` in the case that `children` are not defined.

_Note that if you use a `Portal` (native or `react-portal`) of any sort in the `children`, the `OutsideClickHandler` will not behave as expected._

### onOutsideClick: `PropTypes.func.isRequired`

The `onOutsideClick` prop is also required as without it, the `OutsideClickHandler` is basically a heavy-weight `<div />`. It takes the relevant clickevent as an arg and gets triggered when the user clicks anywhere outside of the subtree generated by the DOM node.

### disabled: `PropTypes.bool`

If the `disabled` prop is true, outside clicks will not be registered. This can be utilized to temporarily disable interaction without unmounting/remounting the entire tree.

### useCapture: `PropTypes.bool`

See https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Building_blocks/Events#Event_bubbling_and_capture for more information on event bubbling vs. capture.

If `useCapture` is true, the event will be registered in the capturing phase and thus, propagated top-down instead of bottom-up as is the default.
npm package: @kimmel/toolbelt
Description: Utility functions for Kimmel projects
Author: Ryan Castner
Latest version: 0.1.1

# Toolbelt

> Useful utility functions for Kimmel projects

[![codecov](https://codecov.io/gh/kimmelsg/toolbelt/branch/master/graph/badge.svg)](https://codecov.io/gh/kimmelsg/toolbelt)

## Installation

In your terminal:

```shell
$ yarn add @kimmel/toolbelt
```

## Functions

- [attempt](#attempt)

### attempt

Wraps a promise in a try/catch block and returns a tuple with the first item being any caught error, and the second item being the resolved promise.

```ts
import { attempt } from '@kimmel/toolbelt';

async function fetchData() {
  return fetch('https://example.com');
}

async function tryToFetch() {
  const [error, result] = await attempt(fetchData);

  if (error) {
    // do something
  }

  return result;
}
```

`attempt` automatically infers the resolves type of your promise.