open-index/open-npm huggingface dataset:
npm package: @iocium/throwaway-lookup
Description: Cross-platform client for throwaway.cloud API
Author: Iocium
Latest version: 1.0.1

# @iocium/throwaway-lookup

A lightweight, cross-platform client for querying the [throwaway.cloud](https://throwaway.cloud) API — compatible with browsers, Node.js, and serverless platforms like Cloudflare Workers.

---

## ✨ Features

- ✅ Simple API: `lookup(emailOrDomain)`
- 🌐 Works in **Node.js**, **browsers**, and **Cloudflare Workers**
- 🧠 Automatically sets a compliant `User-Agent`
- 🔒 Lets you add custom headers (except `User-Agent`, which is enforced)
- 🚫 Detects disposable email addresses and domains
- ✅ Written in TypeScript with full typings
- 🧪 100% test coverage with `jest`

---

## 🚀 Installation

```bash
npm install @iocium/throwaway-lookup
```

---

## 🧑‍💻 Usage

```ts
import { lookup } from '@iocium/throwaway-lookup';

const result = await lookup('mailinator.com');

if (result.success && result.isDisposable) {
  console.log('Disposable detected!');
} else {
  console.log('Safe to use.');
}
```

---

## 🔧 API

### `lookup(subject: string, options?: LookupOptions): Promise<LookupResult>`

| Parameter | Type | Description |
|----------|------|-------------|
| `subject` | `string` | An email address or domain name to query |
| `options` | `LookupOptions` | Optional object to supply custom headers (except `User-Agent`) |

### `LookupOptions`

```ts
interface LookupOptions {
  headers?: Record<string, string>; // Custom headers
}
```

### `LookupResult`

```ts
interface LookupResult {
  success: boolean;
  isDisposable?: boolean;
  [key: string]: any; // May include additional fields
}
```

---

## 🧪 Testing

```bash
npm test
```

Includes a full test suite with coverage reports for:
- Success paths
- Disposable detection
- Invalid input
- API and network failures

---

## 📘 Documentation

Generate full docs using:

```bash
npm run docs
```

Output is placed in the `docs/` directory and includes all exported types and functions.

---

## 📜 License

MIT
npm package: @iocmd/hold-up
Description: setInterval with promises, counter and error handling
Author: coderaiser
Latest version: 2.1.0

# Hold Up [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage Status][CoverageIMGURL]][CoverageURL]

`hold up` is `setInterval` with `promises`, `counter` and `error handling`.
It runs a `function` and if it `throws` run it again with interval (defaults to 1 second) `counter` times (defaults to 5). If it fails, promise throws, if successed resolves.

## Install

`npm i @iocmd/hold-up --save`

## API

### holdUp(fn[, options])

### holdUp([fn, args], options)

- `fn` - function
- `args` - array of arguments
- `options` - options may contain:
  - `log`
  - `count`
  - `time`

```js
const holdUp = require('hold-up');
const fn = async (a = 'hello') => {
    throw Error(a);
};

await holdUp(fn);

// reject in a 5 seconds
// [Error: hello]

// with arguments
await holdUp([fn, 'world']);

// reject in a 5 seconds
//[Error: hello]

// when you need to override options,
await holdUp([fn, 'hello'], {
    count: 5,       // default
    time: 1000,     // default
    log: () => {},  // default
});
```

## Related

- [currify](https://github.com/coderaiser/currify "currify") - translate the evaluation of a function that takes multiple arguments into evaluating a sequence of functions, each with a single or more arguments.

- [fullstore](https://github.com/coderaiser/fullstore "fullstore") - functional variables.

- [wraptile](https://github.com/coderaiser/wraptile "wraptile") - translate the evaluation of a function that takes multiple arguments into evaluating a sequence of 2 functions, each with a any count of arguments.

## License

MIT

[NPMIMGURL]: https://img.shields.io/npm/v/@iocmd/hold-up.svg?style=flat
[BuildStatusIMGURL]: https://travis-ci.com/iocmd/hold-up.svg?branch=master
[LicenseIMGURL]: https://img.shields.io/badge/license-MIT-317BF9.svg?style=flat
[NPMURL]: https://npmjs.org/package/@iocmd/hold-up "npm"
[BuildStatusURL]: https://travis-ci.com/iocmd/hold-up "Build Status"
[LicenseURL]: https://tldrlegal.com/license/mit-license "MIT License"
[CoverageURL]: https://coveralls.io/github/iocmd/hold-up?branch=master
[CoverageIMGURL]: https://coveralls.io/repos/iocmd/hold-up/badge.svg?branch=master&service=github
npm package: @iocmd/wait
Description: promisified setTimeout
Author: coderaiser
Latest version: 2.1.0

# Wait [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage Status][CoverageIMGURL]][CoverageURL]

Promisified `setTimeout`

## Install

`npm i @iocmd/wait`

## Example

```js
await wait(console.log, 'hello');
// log "hello" in next loop

await wait(1000, console.log, 'hello');
// log "hello" in a second

await wait(1000);
// wait for a second
```

## Related

- [hold-up](https://github.com/iocmd/hold-up "hold-up") - setInterval with promises, counter and error handling

- [currify](https://github.com/coderaiser/currify "currify") - translate the evaluation of a function that takes multiple arguments into evaluating a sequence of functions, each with a single or more arguments

- [fullstore](https://github.com/coderaiser/fullstore "fullstore") - functional variables

- [wraptile](https://github.com/coderaiser/wraptile "wraptile") - translate the evaluation of a function that takes multiple arguments into evaluating a sequence of 2 functions, each with a any count of arguments

## License

MIT

[NPMIMGURL]: https://img.shields.io/npm/v/@iocmd/wait.svg?style=flat
[BuildStatusIMGURL]: https://travis-ci.com/iocmd/wait.svg?branch=master
[LicenseIMGURL]: https://img.shields.io/badge/license-MIT-317BF9.svg?style=flat
[NPMURL]: https://npmjs.org/package/@iocmd/wait "npm"
[BuildStatusURL]: https://travis-ci.com/iocmd/wait "Build Status"
[LicenseURL]: https://tldrlegal.com/license/mit-license "MIT License"
[CoverageURL]: https://coveralls.io/github/iocmd/wait?branch=master
[CoverageIMGURL]: https://coveralls.io/repos/iocmd/wait/badge.svg?branch=master&service=github