https://github.com/daun/yewtillitees
https://github.com/daun/yewtillitees
helpers js utils
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/daun/yewtillitees
- Owner: daun
- License: mit
- Created: 2020-07-27T20:47:14.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-05-16T11:38:06.000Z (about 3 years ago)
- Last Synced: 2025-03-03T21:06:03.566Z (over 1 year ago)
- Topics: helpers, js, utils
- Language: JavaScript
- Homepage:
- Size: 28.3 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Yewtillitees
[](https://www.npmjs.com/package/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)