open-index/open-npm huggingface dataset:
npm package: @pkishorez/monorepo-tools-test
Description: ## Concepts.
Latest version: 0.0.9

# Monorepo tools 🚀

## Concepts.

1. A `monorepo` is collection of workspaces. A `workspace` conceptually could be any app/package.
2. A `workspace` consists of a name, depedencies, devDependencies, optionalDependencies, and others.
3. Each dependency entry consist of package name + `versionRange`. `versionRange` could be a pinned version like "2.4.7" or a more broader "^2.3.1". Nevertheless we consider the value to be a broader versionRange.
npm package: @pkjy/virtual-list
Description: A mini javascript virtual list library
Latest version: 0.0.1

virtual-list
=====

A mini and zero dependency virtual list library. Just for practice, do NOT recommend using in prod env.

### Installation
```
npm i @pkjy/virtual-list
```

### Usage & API
#### Constructor
- `new VirtualList(options)`
  - `data`: the content of list.Need an Array.
  - `selector`: the target element for the list. *Defaults to body.*
  - `height`: the height for the virtual list ViewPort. *Defaults to 150.*
  - `itemHeight`: the height for the virtual list component. *Defaults to 15.*
 
#### Methods
- `instance.push(data)`
Push new content to the VirtualList.

#### Event
- todo: `callback when scroll happens`

### Example
```js
import { VirtualList } from '@pkjy/virtual-list'

const data = [...new Array(1000000).keys()]

const instance = new VirtualList({ data, selector: '#app', height: 300, itemHeight: 30  })

let idx = 0
setInterval(() => {
  instance.push(`------ new line ${idx} ------`)
  idx++
}, 2000)

```

### License
MIT.