open-index/open-npm huggingface dataset:
npm package: @nbxx/webgl-heatmap
Description: A commonJS compatible version of pyalot's webgl-heatmap
Author: Jordan McCord
Latest version: 0.3.2

WebGL Heatmap
=============

This is a fork of [Florian Boesch](https://github.com/pyalot)'s excellent WebGL
Heatmap to support CommonJS and and to make it available from NPM. To install
it run:

    npm install webgl-heatmap

webgl-heatmap is a JavaScript library for high performance heatmap display.

Demo
----

Live Demo at [codeflow.org](http://codeflow.org/entries/2013/feb/04/high-performance-js-heatmaps "")  

How to use it
-------------

Instantiate a new heatmap, errors can be one of:

 * Webgl is not supported
 * No floating point texture support
 * Floating point render target not supported
 * Shader Compile Error: ...
 * Shader Link Error: ...

```javascript
try{
    var heatmap = new WebGLHeatmap({canvas: yourCanvas});
}
catch(error){
    // handle the error
}
```

creation arguments

 * canvas: the canvas you wish to draw on
 * width: explicit width
 * height: explicit height
 * intensityToAlpha: defaults to true
 * gradientTexture: texture used instead of color calculation, can be path or an image

Add a data point.

 * x and y relative to the canvas in pixels
 * size in pixels (radius)
 * intensity between 0 and 1

```javascript
heatmap.addPoint(x, y, size, intensity);
```

Add a list of data points.

 * x and y relative to the canvas in pixels
 * size in pixels (radius)
 * intensity between 0 and 1

```javascript
heatmap.addPoints([{x:x, y:y, size:size, intensity:intensity}]);
```

Draw queued data points:

```javascript
heatmap.update()
```

Display the heatmap

```javascript
heatmap.display()
```

Multiply all values in the heatmap by a number (useful for decay)

```javascript
heatmap.multiply(0.995)
```

Clamp all values in the heatmap to between two values:

```javascript
heatmap.clamp(0.0, 1.0)
```

Blur all values a little:

```javascript
heatmap.blur()
```
npm package: @nbyodai/tini
Description: Removes spaces from a string
Latest version: 2.0.0

# @nbyodai/tini

[![npm (scoped)](https://img.shields.io/npm/v/@nbyodai/tini.svg?style=plastic)](https://github.com/nbyodai/tini)
[![npm bundle size](https://img.shields.io/bundlephobia/min/@nbyodai/tini.svg?style=plastic)](https://github.com/nbyodai/tini)

Removes spaces from strings

## Install

> \$npm install @nbyodai/tini

```js
const tini = require("@nbyodai/tini");
tiny("So much space!");
//=> "Somuchspace!"

tiny(1337);
//=> Uncaught TypeError: Tiny wants a string!
//    at tiny (<anonymous>:2:41)
//    at <anonymous>:1:1
```

- it's the tiniiest!