open-index/open-npm huggingface dataset:
npm package: @prodvdjin/dmgk-uikit
Description: Set of UI components for darkmagick projects
Latest version: 0.0.8

# 🥞 Pancake UIkit

[![Version](https://img.shields.io/npm/v/@pancakeswap-libs/uikit)](https://www.npmjs.com/package/@pancakeswap-libs/uikit) [![Size](https://img.shields.io/bundlephobia/min/@pancakeswap-libs/uikit)](https://www.npmjs.com/package/@pancakeswap-libs/uikit)

Pancake UIkit is a set of React components and hooks used to build pages on Pancake's apps. It also contains a theme file for dark and light mode.

## Install

`yarn add @pancakeswap-libs/uikit`

## Setup

### Theme

Before using Pancake UIkit, you need to provide the theme file to styled-component.

```
import { ThemeProvider } from 'styled-components'
import { light, dark } from '@pancakeswap-libs/uikit'
...
<ThemeProvider theme={isDark}>...</ThemeProvider>
```

### Reset

A reset CSS is available as a global styled component.

```
import { ResetCSS } from '@pancakeswap-libs/uikit'
...
<ResetCSS />
```

### Types

This project is built with Typescript and export all the relevant types.

## How to use the UIkit

If you want to use components from the UIkit, check the [Storybook documentation](https://pancakeswap.github.io/pancake-uikit/)
npm package: @proem/all
Description: Meta package that includes all proem packages
Author: Joni Katajamäki
Latest version: 0.0.23

# `@proem/all`

Meta package for adding all proem packages as dependencies.

## Usage

```
npm install @proem/all

yarn add @proem/all
```

```ts
import array from '@proem/array'
import dict from '@proem/dict'
import function from '@proem/function'
import some from '@proem/some'
```
npm package: @proem/array
Description: Typescript array utilities
Author: Joni Katajamäki
Latest version: 0.0.23

# `@proem/array`

Utility package for processing arrays.

## Usage

First, import the `@proem/array` module is imported into the namespace

```
import array from '@proem/array';
```

`@proem/array` provides custom implementations for convenience functions already implemented by the `Array.prototype`, such as the `map` function. The semantics might differ, for example the `array.map` in proem trades the support of sparse arrays for performance.

```
const input = [1, 2, 3, 4, 5]

const output = array.map(input, n => n + 1)  // [2, 3, 4, 5, 6, 7]
```

Some functions have their partially applicable counterparts. For example, proem provides the `array.map.partial`, which returns a function applicable to arrays.

```
const a = ["a,", "b", "c"]
const b = ["d", "e", "f"]

const partial = map.partial((str: string) => str.toUpperCase())

const output = partial(a) // [ 'A,', 'B', 'C' ]

const otherOutput = partial(b) // ['D', 'E', 'F']
```
npm package: @proem/function
Description: Proem package for function types and composition
Author: Joni Katajamäki
Latest version: 0.0.23

# `@proem/function`

Proem package for function type aliases and function composition.

## Usage

```ts
import { Guard } from '@proem/function'

const isString: Guard<any, string> = value => typeof value === 'string'
```
npm package: @proem/pipe
Description: Proem package for combining functions
Author: Joni Katajamäki
Latest version: 0.0.23

# `@proem/pipe`

Proem package for composing functions as pipelines.

## Usage

```
import array from '@proem/array'
import { pipe } from '@proem/pipe'

const longWordsLength = pipe((s: string) => s.split('.'))
  .to(array.map.partial(s => s.length))
  .to(array.filter.partial(l => l > 4))
  .to(array.reduce.partial<number, number>((acc, n) => acc + n)(0))
```
npm package: @proem/some
Description: Proem package for handling possibly null values
Author: Joni Katajamäki
Latest version: 0.0.23

# `@proem/some`

Library for handling values that can be null.

## Usage

```ts
import some from '@proem/some'

const name = 'Jane' as string | null
const nameLength = some.map(name, n => n.length)
```
npm package: @proem/union
Description: proem package for handling union types
Author: Joni Katajamäki
Latest version: 0.0.23

# `@proem/union`

`@proem/union` provides functions for processing [union types](https://www.typescriptlang.org/docs/handbook/advanced-types.html#union-types)

## Usage

```ts
import union from '@proem/union'

type Label = 'a' | 'b'

const label: Label = 'a'

function labelToNumber(label: Label) {
  return union.mapLiteral(label, {
    a: () => 1,
    b: () => 2,
  })
}
```
npm package: @proerd/buildscript
Description: I don't need gulp!
Author: Willian Krueger
Latest version: 1.1.1

# buildscript-utils

_(just a couple functions, not proper for general consumption)_

### runTask(tasksDef : { [taskName] : () => Promise|void })

The task runner. Provide and object which keys will be the task names.

```javascript
//build.js
var tasks = {
  bundle() {
    return doSomething()
  }
}
buildscript.runTask(tasks)
//call in console:
//node build bundle
```

### spawn( command, opts ) : Promise<void>

```
let { cwd, processCb, silent, silentInfo } = opts
```

Spawns a CLI tool.

**processCb** Callback which provides the created process object.
You are not supposed to use this unless you want to -- say -- programatically
send input or kill the process.

```javascript
var tasks = {
  watch() {
    bs.spawn("../node_modules/.bin/tsc -w")
    bs.spawn("../node_modules/.bin/livereload")
  }
}
bs.runTask(tasks)
```

### copyFn( srcglob, dest ) : Promise<void>

Copies a glob of files to a destination, flattening the output tree.
To copy a folder without flattening, use `spawn('rsync ...')` instead.

### watch(targetGlob, cb)

Watch a folder using chokidar.