open-index/open-npm huggingface dataset:
npm package: @dvlden/alea
Description: Pseudorandom number generator based on Alea algorithm.
Author: Nenad Novaković
Latest version: 1.1.0

![alea](https://repository-images.githubusercontent.com/591486972/b889810e-bc65-4628-9186-d6f1936fdb7e)

![GitHub package.json version](https://img.shields.io/github/package-json/v/dvlden/alea?color=86c7ff&style=flat-square)
![npm bundle size (scoped)](https://img.shields.io/bundlephobia/minzip/@dvlden/alea?color=%2386c7ff&style=flat-square)

# Alea

Pseudorandom number generator created by Johannes Baagøe, but rewritten a bit differently.
If you ever needed a seedable random numbers, this is one way to achive that with a simple ES generator function.

> Check test cases if you are still wondering what it does.

<br>

## Installation

Use your favourite package manager... In my case that's `pnpm`.

```bash
pnpm i @dvlden/alea
```

<br>

## Usage

**Browser**

```ts
import { alea } from '@dvlden/alea'

const random = alea(123) // where `123` is your seed

console.log(random.next().value) // 0.1198014235123992
```

**Node**

```ts
const { alea } = require('@dvlden/alea')

const random = alea(123) // where `123` is your seed

console.log(random.next().value) // 0.1198014235123992
```

**Iterations**

Since this PRNG has been written as generator, it will yield a new value whenever you need it.
Do any loop that you want, just make sure to constraint it as a generator will do it infinitely otherwise.

```ts
import { alea } from '@dvlden/alea'

const random = alea(123)

for (let i = 0; i < 10; i++) {
  console.log(random.next().value)
}
```
npm package: @dwalter/spider-dev-middleware
Description: developer middleware for spider-store
Author: Duncan Walter
Latest version: 2.0.4

# @dwalter/spider-dev-middleware

```javascript
import { createDevMiddleware } from '@dwalter/spider-dev-middleware'
import { createStore } from '@dwalter/spider-store'

const devMiddleware = createDevMiddleware()

const store = createStore(devMiddleware)
```

Features:

- Integrates with redux dev tools if present
- Enables time travelling
- persists state in `sessionStorage`
- Deep freezes state automatically
- Checks that object references are normalized
- Checks that slices are uniquely named
npm package: @dwane-vonage/vve-text-chat
Description: Webcomponent vve-text-chat following open-wc recommendations
Author: vve-text-chat
Latest version: 0.0.13

# \<vve-text-chat>

This webcomponent follows the [open-wc](https://github.com/open-wc/open-wc) recommendation.

## Installation

```bash
npm i @dwane-vonage/vve-text-chat
```

## Usage

```html
<script type="module">
  import '@dwane-vonage/vve-text-chat/vve-text-chat.js';
</script>

<vve-text-chat></vve-text-chat>
```

## Linting and formatting

To scan the project for linting and formatting errors, run

```bash
npm run lint
```

To automatically fix linting and formatting errors, run

```bash
npm run format
```

## Testing with Web Test Runner

To execute a single test run:

```bash
npm run test
```

To run the tests in interactive watch mode run:

```bash
npm run test:watch
```

## Demoing with Storybook

To run a local instance of Storybook for your component, run

```bash
npm run storybook
```

To build a production version of Storybook, run

```bash
npm run storybook:build
```


## Tooling configs

For most of the tools, the configuration is in the `package.json` to minimize the amount of files in your project.

If you customize the configuration a lot, you can consider moving them to individual files.

## Local Demo with `web-dev-server`

```bash
npm start
```

To run a local development server that serves the basic demo located in `demo/index.html`
npm package: @dwdjs/rem-flexible
Description: Build flexible page on mobile platform
Author: mingelz
Latest version: 2.4.3

# rem-flexible（Original name is amfe-flexible）

Firstly, Let's show respect to original author.

This package published with some minor changes, The main function flexible can be passed two optional arguments. The first is design width, The second is pixel per rem.

[Classic edition (0.3.2)](https://github.com/shinvey/lib-flexible/tree/master)

> 由于`viewport`单位得到众多浏览器的兼容，`lib-flexible`这个过渡方案已经可以放弃使用，不管是现在的版本还是以前的版本，都存有一定的问题。建议大家开始使用`viewport`来替代此方案。`vw`的兼容方案可以参阅《[如何在Vue项目中使用vw实现移动端适配](https://www.w3cplus.com/mobile/vw-layout-in-vue.html)》一文。

## Usage

### 选择unpkg
```html
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
<script src="//unpkg.com/rem-flexible@2.1.0/dist/index.min.js"></script>
<script>
  // 设计稿宽度为750px，每1rem等于100px
  flexible(750, 100)
</script>
```

### 选择npm包

```bash
npm i rem-flexible
```

HTML中引入
```html
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
<script src="./node_modules/rem-flexible/dist/index.min.js"></script>
<script>
  // 设计稿宽度为750px，每1rem等于100px
  flexible(750, 100)
</script>
```

在es6项目中引入
```js
import flexible from 'rem-flexible'
flexible(750, 100)
````

You can inline this file with [inline-source](https://npmjs.org/package/inline-source).

#### Develop

Use [postcss-adaptive](https://www.npmjs.com/package/postcss-adaptive).

## License

(The MIT License)

Copyright (c) 2016 Alibaba MFE

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.