An open API service indexing awesome lists of open source software.

https://github.com/daun/yewtillitees


https://github.com/daun/yewtillitees

helpers js utils

Last synced: 11 months ago
JSON representation

Awesome Lists containing this project

README

          

# Yewtillitees

[![NPM version](https://img.shields.io/npm/v/yewtillitees)](https://www.npmjs.com/package/yewtillitees)
[![GitHub license](https://img.shields.io/github/license/daun/yewtillitees)](./LICENSE)

Helper functions I need often.

## Installation

```js
npm install yewtillitees
```

## Usage

```js
import { normalize } from 'yewtillitees'

const normalizer = normalize(10, 20)
normalizer(15) // 0.5
```

## Helpers

### Array

- `findIndexes`
- `pickRandom`
- `shuffle`

### Async

- `sleep`

### DOM

- `createTemplateInstance`
- `measureDocumentHeight`
- `measureScrollbarSize`
- `onIdle`
- `onIdleAfterLoad`
- `onDomReady`
- `onWindowLoad`

### Number

- `clamp`
- `normalize`
- `normalizeBetweenRanges`
- `random`
- `randomInteger`

### Object

- `map`

### String

- `camelCase`
- `kebabCase`

## License

[MIT](https://opensource.org/licenses/MIT)