open-index/open-npm huggingface dataset:
npm package: @pschichtel/hol
Description: A wrapper around fetch with infrastructure for request/response interception
Author: Phillip Schichtel
Latest version: 0.8.2

# hol

The library is named after the german word for `fetch` as it internally uses `fetch` and exposes its data
structures as part of its interface.

At its core it wraps the [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) with a filter pipeline
that has full control over how, when and if the actual request executes.
npm package: @pschm/report-mapper
Description: Altered version of @archi-lab/report-mapper
Author: pschm
Latest version: 1.0.7

# divekit-report-mapper

## Nutzung

* Die Befehle `npm install` und `npx tsc` im Wurzelverzeichnis ausführen, um so alle dependencies zu installieren und die JavaScript Dateien zu generieren.

* Achtung: Nach Änderungen an Typescript-Source Dateien im `src`-Ordner nicht vergessen wieder `npx tsc` auszuführen.

* Mit `node build/bin/report-mapper` lässt sich der Mapper lokal ausführen. Es wird die Datei `unified.xml` generiert und im `target`-Ordner abgelegt. Surefire-Reports können unter `target/surefire-reports/` abgelegt werden. Die von statischen Sourcecode Analysetools generierten XML-Reports können direkt unter `target/` abgelegt werden.
npm package: @pscodium/lib-boilerplate
Description: Boilerplate for creating npm libraries (TypeScript, ESM + CJS builds)
Author: Pscodium
Latest version: 0.1.2

# lib-boilerplate

Template de biblioteca npm em TypeScript (ESM + CJS builds) para clonar e usar como base.

O boilerplate inclui:

- TypeScript configurado (declarations)
- Build com tsup (gera ESM + CJS e .d.ts)
- Testes com Vitest

Como começar

1. Instale dependências:

```powershell
# no Windows PowerShell
cd e:/dev/lib-boilerplate
npm install
```

2. Rodar testes:

```powershell
npm test
```

3. Build:

```powershell
npm run build
```

Arquivos importantes

- `lib/index.ts` - ponto de entrada da lib
- `tsconfig.json` - configuração TypeScript
- `package.json` - scripts e metadata
- `README.template.md` - este arquivo de instruções

Publicação

- Atualize `package.json` (nome, version, description, repository, license)
- Teste o build e os tipos (npm run build)
- Faça login no npm (npm login)
- Publique: `npm publish --access public` (se aplicável)

Notas

- Ajuste o campo `engines.node` conforme sua necessidade.
- Se preferir usar ESLint/Prettier, adicione as configs e dependências.
npm package: @pscoped/ng2-cache
Description: > ng2-cache library compatible with AoT compilation &amp; Tree shaking like an official package.
Author: Paritosh Patel
Latest version: 0.1.0

# ng2-cache

> ng2-cache library compatible with AoT compilation &amp; Tree shaking like an official package.

This lib allows you to use ng2-cache library for **Angular v19+** apps written in _TypeScript_, _ES6_ or _ES5_. 


## How to use

1. `npm install @pscoped/ng2-cache --save`
2. Import it in your main app module
    ```
    @NgModule({
    declarations: [
        ....
    ],
    imports: [
        ....
        Ng2CacheModule
    ],
    providers: [],
    bootstrap: [AppComponent]
    })
    export class AppModule { }
    ```

3. Use it inside your `Component` by DI

    ````
    ...
    import { CacheService, CacheStoragesEnum } from 'ng2-cache';
    ...

    export class AppComponent {
    
    constructor(private _cacheService: CacheService) { 
        this._cacheService.set('key', ['some data']);

        const cachedData = this._cacheService.get('key');
    } 
    ````
That's it.


## To contribute

- Git Repo: https://github.com/paritosh64ce/ng2-cache/tree/ng19

### Run tasks

To create a production bundle:

```sh
npm run build
```


## License

MIT
npm package: @pscraper/scraper
Description: Download website to local directory (including all css, images, js, etc.)
Author: wahengchang
Latest version: 0.0.15

# Demo for @pscraper/scraper

## Install
```
$ yarn add @pscraper/scraper

or 


$ npm install @pscraper/scraper
```

## Run
```
$ npx @pscraper/scraper --config='./yourConfigName.js'

```

#### `./yourConfigName.js`
 - must have `./`

 ```js
const scrollDown = async function(page){
    await page.evaluate(async () => {
        await new Promise((resolve, reject) => {
          // implement browser javascript 
          window.scrollBy(0, 100);
        })
    });
  }

module.exports = {
  name: `yahoo-${new Date().getTime()}`,
  url: 'https://yahoo.com/',
  isDownloadResource: true, //save to  ./name/file.css
  isDownloadCookies: true,  //save to  ./name/cookies.json
  isReport: true,           //save to  ./name/report.json
  downloadResourceType: ['document','stylesheet','script','image','font','xhr','other'],
  afterPageLoad: scrollDown, 
  afterHtmlLoad: async function(html){
    // console.log(html)
  },
}
```
npm package: @pscraper/taskm
Description: This lib is for a managing a large number of tasks, by adding each task into queue, and digesting each of them one by one. These are the the resaon why using `taskm`:  - you got a large number of task to handle, an execption may cause the script to restar
Latest version: 0.0.16

# Demo for @pscraper/taskm, Task Manager
This lib is for a managing a large number of tasks, by adding each task into queue, and digesting each of them one by one. These are the the resaon why using `taskm`:
 - you got a large number of task to handle, an execption may cause the script to restart from the first
 - you got a large number of task to handle, and needed to know how many is `pending`, `finished` and `fail`
 - you got a large number of task to handle, and those task could be digested by more than one computer 



**(`sqlite` is used to manage queue)**


## Install
```
$ yarn add @pscraper/taskm

or 


$ npm install @pscraper/taskm
```

## Example-1 (FIFO)
More Example: [https://github.com/wahengchang/pscraper/tree/master/packages/demo/taskm](https://github.com/wahengchang/pscraper/tree/master/packages/demo/taskm)

adding new task to queue (FIFO)
![@pscraper_taskm-fifo](https://user-images.githubusercontent.com/5538753/72214782-e6d4ad00-3543-11ea-8e8e-1082e0343ca4.jpg)


```js

const TM = require('@pscraper/taskm')
const taskm = new TM()
await taskm.init()

const uniqueId = "amazingId"
const options = {
    title: 'amazingTitle',
    meta: JSON.stringify({key: "key1"})
}
await taskm.add(uniqueId, options)
```

consumming task from queue
```js
const TM = require('@pscraper/taskm')
const taskm = new TM()
await taskm.init()

const item = await taskm.getFirst()
// do something
await taskm.markFinished(item.id)
```

## Example-2 (Task Distribution)
![@pscraper_taskm-multiple](https://user-images.githubusercontent.com/5538753/72214774-b725a500-3543-11ea-8f28-8386ea09181d.jpg)

adding new task to queue
```js

const TM = require('@pscraper/taskm')
const taskm = new TM()
await taskm.init()

for(let i =0 ; i<999999; i++) {
    const id = `mockId${new Date().getTime()}-${i}`
    const title = `${id}-title-${i}`
    inputList.push({id, title})
    await taskm.add(id, {title})
}

```

consumming task from queue, usually is run on more than one PC parallelly
```js
const TM = require('@pscraper/taskm')
const taskm = new TM()
await taskm.init()

const item = await taskm.getFirstRandom()
// do something
await taskm.markFinished(item.id)
```


## Usage

| Function   |      Description      |
|----------|:-------------:|
| `init()`| init DB connection|
| `purge()`| remove all existed ada |
| `add(uniqueId = ''`, body = {}) |  adding a new task to queue |
| `getFirst(condition={})` |    getting one task from queue, default FIFO   |
| `getFirstRandom(condition={})`| getting one task from queue randomly |
| `getTaskById(id)`| getting one task by given id |
| `listAllTasks(condition={})`| return all created and fail tasks |
| `markFinished(id)`| mark task as finished, would appear in getFirst()|
| `markFail(id)`| mark task as fail, would appear in getFirst()|
    

## Reference:
 - https://www.freertos.org/Embedded-RTOS-Queues.html
npm package: @psdhub/eslint
Description: PSD Hub eslint react setup
Author: matheuskindrazki
Latest version: 1.2.4

# @psdhub/eslint

Setup de pré-configuração de eslint & Prettier

## Instalação

### npm

```
$ npm install --save-dev --ignore-scripts @psdhub/eslint @psdhub/peers
```

### yarn

```
$ yarn add --dev --ignore-scripts @psdhub/eslint @psdhub/peers
```

## Uso

Após a instalação, rode `npm install` (ou `yarn install`) para que as `peer` dependencies sejam lincadas no arquivo .lock.
npm package: @psdhub/peers
Description: Automatically installs project's peerDependencies (as devDependencies)
Author: Matheus Kindrazki
Latest version: 1.0.0

# @psdhub/peers

Instalação automática dos módulos peerDependencies (e devDependencies). Funcional com `npm`, `yarn` e `nvm`.

## Instalação

### npm

```
$ npm install --save-dev --ignore-scripts @psdhub/peers
```

### yarn

```
$ yarn add --dev --ignore-scripts @psdhub/peers
```

## Uso

Após a instalação, rode `npm install` (ou `yarn install`) para que as `peer` dependencies sejam lincadas no arquivo .lock.