open-index/open-npm huggingface dataset:
npm package: @kanaries/web-data-loader
Description: data loader tools for common datasource types (in browser)
Author: jojocys
Latest version: 0.1.7

# web-data-loader
![](https://img.shields.io/github/license/kanaries/web-data-loader?color=%23FF7575)
![](https://img.shields.io/npm/v/@kanaries/web-data-loader?color=5BE7C6)
![](https://travis-ci.com/Kanaries/web-data-loader.svg?branch=master)

data loader for data analytic product in working in browser

web-data-loader allows you to load larget data files in browser. It supports stream data and runs in webworker which will not block the main thread while loading the data. web-data-loader also support stream data sampling, it now support `Reservoir Sampling` methods.

## Usage

### Install
```bash
npm i --save @kanaries/web-data-loader
```

### Examples
in your project file:

get user upload file
```html
<input type="file" id="#file" />
```

use web-data-loader to load the data with sampling.
```js
(document.querySelector("#file") as HTMLInputElement).onchange = (
  ev: Event
) => {
  const file = (ev.target as HTMLInputElement).files[0];
  FileReader.csvReader(
    file,
    {
      type: "reservoirSampling",
      size: 400
    },
    value => {
      console.log((value * 100).toFixed(2) + '%');
    }
  ).then(data => console.log(data));
  // FileReader.csvReader(file).then(data => console.log(data));
};

```

## Docs
documents can be found at [API Reference](https://kanaries.github.io/web-data-loader/)
npm package: @kanas/eslint-config-kanas
Description: ESLint config for Kanas
Author: snowball1990
Latest version: 1.0.6

# eslint-config-kanas

> This package provides Kanas's JS and Vue .eslintrc (with Vue plugin) as an extensible shared config.

## Installation

```bash

# npm
npm install eslint @kanas/eslint-config-kanas -D

# yarn
yarn add eslint @kanas/eslint-config-kanas -D

```

## Usage

You can create a file .eslintrc.js in the project root directory,Configuration is as follows:

```javascript
// .eslintrc.js
module.exports = {
  extends: ["@kanas/eslint-config-kanas"]
};
```

## Further Reading

- [ESLint Shareable Configs](https://github.com/eslint/eslint/blob/master/docs/developer-guide/shareable-configs.md)
npm package: @kanas/stylelint-config-kanas
Description: StyleLint config for Kanas
Author: snowball
Latest version: 1.0.6

# stylelint-config-kanas

> This package provides Kanas's CSS .stylelintrc (with BEM plugin) as an extensible shared config.

## Installation

```bash

# npm
npm install stylelint @kanas/stylelint-config-kanas -D

# yarn
yarn add stylelint @kanas/stylelint-config-kanas -D

```

## Usage

You can create a file .stylelintrc.js in the project root directory,Configuration is as follows:

```javascript
// .stylelintrc.js
module.exports = {
  extends: ["@kanas/stylelint-config-kanas"]
};
```

## Further Reading

- [StyleLint Configs](https://github.com/stylelint/stylelint/blob/master/docs/user-guide/configuration.md)