open-index/open-npm huggingface dataset:
npm package: @jimkang/randomid
Description: Makes ids for DOM elements.
Author: Jim Kang
Latest version: 1.1.0

randomid
=======

This module generates random ids that can be safely used as DOM element ids.

Installation
------------

    npm install @jimkang/randomid

For use as command line util: `npm install -g @jimkang/randomid`

Usage
-----

As module:

  var RandomId = require('@jimkang/randomid');
  var randomId = RandomId();
  var id = randomId(10);

[Here's an example.](http://jimkang.com/randomid/example)

If you want to use your own random function (for example, one that uses a specific seed for reproducible results), you can provide it in the constructor:

    var RandomId = require('@jimkang/randomid');
    var seedrandom = require('seedrandom');
    var randomId = RandomId({ random: seedrandom('test') });

If you don't provide a random option, it will just use `Math.random` for the random function.

As command line util:

    randomid 5

(Then, it will produce a five-character id.)

Tests
-----

Run tests with `make test`.

License
-------

MIT.
npm package: @jimmy-guzman/decompress-response
Description: [![version][version-badge]][package] [![downloads][downloads-badge]][npmtrends] [![semantic-release][semantic-release-badge]][semantic-release] [![code style: prettier][prettier-badge]][prettier]
Latest version: 1.0.1

[![version][version-badge]][package] [![downloads][downloads-badge]][npmtrends]
[![semantic-release][semantic-release-badge]][semantic-release]
[![code style: prettier][prettier-badge]][prettier]

# @jimmy-guzman/decompress-response

<!-- ![description starts here] -->

> A fork of [decompress-response](https://github.com/sindresorhus/decompress-response) but with CJS support

Decompresses the [response](https://nodejs.org/api/http.html#http_class_http_incomingmessage) from [`http.request`](https://nodejs.org/api/http.html#http_http_request_options_callback) if it's gzipped, deflated or compressed with Brotli, otherwise just passes it through.

## Install

```sh
pnpm add @jimmy-guzman/decompress-response
```

## Usage

```ts
import http from 'http'
import decompressResponse from '@jimmy-guzman/decompress-response'

http.get('https://sindresorhus.com', (response) => {
  response = decompressResponse(response)
})
```

## API

### decompressResponse(response)

Returns the decompressed HTTP response stream.

#### response

Type: [`http.IncomingMessage`](https://nodejs.org/api/http.html#http_class_http_incomingmessage)

The HTTP incoming stream with compressed data.

<!-- ![usage ends here] -->

<!-- badges links -->

[version-badge]: https://img.shields.io/npm/v/@jimmy-guzman/decompress-response.svg?logo=npm&style=flat-square
[package]: https://www.npmjs.com/package/@jimmy-guzman/decompress-response
[downloads-badge]: https://img.shields.io/npm/dm/@jimmy-guzman/decompress-response.svg?logo=npm&style=flat-square
[npmtrends]: http://www.npmtrends.com/@jimmy-guzman/decompress-response
[semantic-release]: https://semantic-release.gitbook.io/semantic-release/
[semantic-release-badge]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square
[prettier-badge]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square
[prettier]: https://github.com/prettier/prettier
npm package: @jimmy-guzman/utils
Description: Collection of utilities used throughout personal projects
Latest version: 1.0.0

![actions][actions-badge]
[![version][version-badge]][package]
[![downloads][downloads-badge]][npmtrends]
[![Code Coverage][coverage-badge]][coverage]

# @jimmy-guzman/utils

> 🗄️ Collection of utilities used throughout personal projects

## ➕ Install

```shell
npm i @jimmy-guzman/utils
```

Or with yarn

```shell
yarn add @jimmy-guzman/utils
```

Or with pnpm

```shell
pnpm add @jimmy-guzman/utils
```

## 📝 Usage

```ts
import { asyncFilter } from '@jimmy-guzman/utils'

const isDivisibleBy2 = async (num: number) => Promise.resolve(num % 2 === 0)

await asyncFilter([2, 4, 1, 8, 3], isDivisibleBy2)
```

See [docs](https://jimmy-guzman.github.io/utils/modules.html) for available utils

<!-- badges links start -->

[actions-badge]: https://img.shields.io/github/workflow/status/jimmy-guzman/utils/release?label=actions&logo=github-actions&style=flat-square
[version-badge]: https://img.shields.io/npm/v/utils.svg?logo=npm&style=flat-square
[package]: https://www.npmjs.com/package/@jimmy-guzman/utils
[downloads-badge]: https://img.shields.io/npm/dm/@jimmy-guzman/utils.svg?logo=npm&style=flat-square
[npmtrends]: http://www.npmtrends.com/@jimmy-guzman
[coverage-badge]: https://img.shields.io/codecov/c/github/jimmy-guzman/utils.svg?style=flat-square
[coverage]: https://codecov.io/github/jimmy-guzman/utils

<!-- badges links end -->
npm package: @jimmy-jin/js-tools
Description: frequently used tools for frontend developer
Author: jimmy jin
Latest version: 1.0.2-beta

# js-tools

## Installation

Using npm:

```shell
$ npm i @jimmy-jin/js-tools
```

## Links

[Home Page](https://waitandsee.top/jtool/calculator)

## Why js-tools?

Js-tools has some functions which are frequently used in javascript:

- Accurate aclculations
- Data formatter
- Validator functions