open-index/open-npm huggingface dataset:
npm package: @liquicode/lib-json
Description: A replacement library for JavaScript's standard JSON functions and more
Latest version: 0.1.5


# lib-json (v0.1.5)

## Overview

`lib-json` is a JavaScript library for working with JavaScript objects.
Primarily this library supports the serialization and deserialization of
JavaScript objects to and from various text formats.

This library contains additional functions to search within and modify JavaScript objects.


---

## Installation

```bash
npm install @liquicode/lib-json
```

---

## Documentation

For full documentation see:

[http://lib-json.liquicode.com](http://lib-json.liquicode.com)
npm package: @liquicode/lib-resource-path
Description: A node library for manipulating a hierarchy of resources using a resource path.
Latest version: 0.0.14


# lib-resource-path (v0.0.14)


---------------------------------------------------------------------


## Getting Started

Install via NPM:
```bash
npm install @liquicode/lib-resource-path
```

Include the library in your source code:
```javascript
const LibResourcePath = require( '@liquicode/lib-resource-path' );
```


---------------------------------------------------------------------


## Simple Usage

```js
const LibResourcePath = require( '@liquicode/lib-resource-path' );

// An array defining three resource nodes.
let Resources =
[
	// Resource Path  :  Resource Value
	".hello"          : { label: 'hello', test: true },
	".hello.world"    : { label: 'world' },
	".koo.bar"        : { label: 'koo bar' },
];

// Get information about a particular resource node.
item = LibResourcePath.Select( Resources, '.hello.world' );
/*
item === {
	path: '.hello.world',
	parent: '.hello',
	name: '.world',
	info: { label: 'world' },
	exists: true,
	resource: { label: 'world', test: true },
	children: [],
}
*/

// Get information about all resources, including implied ones ('.koo') that are not defined.
items = LibResourcePath.Getall( Resources, { item_type: 'info', list_type: 'full', return_type: 'array'} );
/*
items ===
[
	{ path: '.hello', parent: '', name: '.hello', info: { label: 'hello', test: true } },
	{ path: '.hello.world', parent: '.hello', name: '.world', info: { label: 'world' } },
	{ path: '.koo', parent: '', name: '.koo', info: null },
	{ path: '.koo.bar', parent: '.koo', name: '.bar', info: { label: 'koo bar' } },
]
*/

```

---------------------------------------------------------------------


## More Links

- [Library Source Code](https://github.com/liquicode/lib-resource-path)
- [Library Docs Site](http://lib-resource-path.liquicode.com)
- [Library NPM Page](https://www.npmjs.com/package/@liquicode/lib-resource-path)
npm package: @liquicode/lib-web-automation
Description: A NodeJS library to interface with Puppeteer and parsing functions.
Latest version: 0.0.5


# lib-web-automation (v0.0.5) very alpha


---------------------------------------------------------------------


## Getting Started

Install via NPM:
```bash
npm install @liquicode/lib-web-automation
```

Include the library in your source code:
```javascript
const Lib = require( '@liquicode/lib-web-automation' );
```


---------------------------------------------------------------------


## Simple Usage


---------------------------------------------------------------------


## More Links

- [Library Source Code](https://github.com/liquicode/lib-web-automation)
- [Library Docs Site](http://lib-web-automation.liquicode.com)
- [Library NPM Page](https://www.npmjs.com/package/@liquicode/lib-web-automation)
npm package: @liquicode/liquicodejs
Description: A General Purpose Toolkit Library for Javascript
Latest version: 0.0.22

# LiquicodeJS
***(v0.0.22)***

LiquicodeJS is a general purpose library for NodeJS and Javascript.

It is writtem in 100% Javascript and has no dependencies.

There are packages available for node, es5, and es6.


Getting Started
---------------------------------------------------------------------

**Node Environment**

Install via NPM:
~~~bash
npm install @liquicode/liquicodejs
~~~

~~~javascript
// Include the library in your source code
const Liquicode = require( '@liquicode/liquicodejs' );
console.log( Liquicode.version );
~~~

**Browser Environment**

~~~html
<script src="//unpkg.com/@liquicode/liquicodejs/dist/es6/liquicode.es6.js"></script>
<script>
	console.log( window.Liquicode.version );
</script>
~~~

Or use the ES5 version for use with older browsers:

~~~html
<script src="//unpkg.com/@liquicode/liquicodejs/dist/es5/liquicode.es5.js"></script>
<script>
	console.log( window.Liquicode.version );
</script>
~~~


Sample Usage
---------------------------------------------------------------------

~~~javascript
// Include the library in your source code
const Liquicode = require( '@liquicode/liquicodejs' );

// Clone an object.
let cloned = Liquicode.Object.Clone( { foo: 'bar' } );

// Merge two objects.
let merged = Liquicode.Object.Merge( 
	{ foo: 'bar', biz: 'boo' },
	{ foo: 'baz', dee: 'dum' } );
// merged == { foo: 'baz', biz: 'boo', dee: 'dum' }

// Match Wildcard Text
Liquicode.Text.Matches( 'bar', 'b?r' ) // == true
Liquicode.Text.Matches( 'bar', 'ba*' ) // == true
Liquicode.Text.Matches( 'baz', 'ba*' ) // == true
Liquicode.Text.Matches( 'ba', 'ba*' )  // == true

~~~


Project Links
---------------------------------------------------------------------

- [Library Source Code](https://github.com/liquicode/liquicodejs)
- [Library Docs Site](http://liquicodejs.liquicode.com)
- [Library NPM Page](https://www.npmjs.com/package/@liquicode/liquicodejs)


Dependencies
---------------------------------------------------------------------

**None**


Notices
---------------------------------------------------------------------

**None**
npm package: @liquid-carrot/data.cjyvyspsy0000l2m932iv07k1
Description: Dataset: White Wine Quality
Author: Liquid Carrot
Latest version: 1.0.2

# Wine Qaulity Dataset

The Wine Quality Dataset involves predicting the quality of white wines on a scale given chemical measures of each wine.

It is a multi-class classification problem, but could also be framed as a regression problem. The number of observations for each class is not balanced. There are 4,898 observations with 11 input variables and one output variable. The variable names are as follows:

1. Fixed acidity
2. Volatile acidity
3. Citric acid
4. Residual sugar
5. Chlorides
6. Free sulfur dioxide
7. Total sulfur dioxide
8. Density
9. pH
10. Sulphates
11. Alcohol
12. Quality (score between 0 and 10)

The baseline performance of predicting the mean value is an RMSE of approximately 0.148 quality points.

A sample of the first 5 rows is listed below.

**CSV**

```csv
7,0.27,0.36,20.7,0.045,45,170,1.001,3,0.45,8.8,6
6.3,0.3,0.34,1.6,0.049,14,132,0.994,3.3,0.49,9.5,6
8.1,0.28,0.4,6.9,0.05,30,97,0.9951,3.26,0.44,10.1,6
7.2,0.23,0.32,8.5,0.058,47,186,0.9956,3.19,0.4,9.9,6
7.2,0.23,0.32,8.5,0.058,47,186,0.9956,3.19,0.4,9.9,6
```

**JSON**

```json
[{
  "fixed acidity": "7.1",
  "volatile acidity": "0.26",
  "citric acid": "0.29",
  "residual sugar": "12.4",
  "chlorides": "0.044",
  "free sulfur dioxide": "62",
  "total sulfur dioxide": "240",
  "density": "0.9969",
  "pH": "3.04",
  "sulphates": "0.42",
  "alcohol": "9.2",
  "quality": "6"
}, {
  "fixed acidity": "6",
  "volatile acidity": "0.34",
  "citric acid": "0.66",
  "residual sugar": "15.9",
  "chlorides": "0.046",
  "free sulfur dioxide": "26",
  "total sulfur dioxide": "164",
  "density": "0.9979",
  "pH": "3.14",
  "sulphates": "0.5",
  "alcohol": "8.8",
  "quality": "6"
}, {
  "fixed acidity": "8.6",
  "volatile acidity": "0.265",
  "citric acid": "0.36",
  "residual sugar": "1.2",
  "chlorides": "0.034",
  "free sulfur dioxide": "15",
  "total sulfur dioxide": "80",
  "density": "0.9913",
  "pH": "2.95",
  "sulphates": "0.36",
  "alcohol": "11.4",
  "quality": "7"
}, {
  "fixed acidity": "9.8",
  "volatile acidity": "0.36",
  "citric acid": "0.46",
  "residual sugar": "10.5",
  "chlorides": "0.038",
  "free sulfur dioxide": "4",
  "total sulfur dioxide": "83",
  "density": "0.9956",
  "pH": "2.89",
  "sulphates": "0.3",
  "alcohol": "10.1",
  "quality": "4"
}, {
  "fixed acidity": "6",
  "volatile acidity": "0.34",
  "citric acid": "0.66",
  "residual sugar": "15.9",
  "chlorides": "0.046",
  "free sulfur dioxide": "26",
  "total sulfur dioxide": "164",
  "density": "0.9979",
  "pH": "3.14",
  "sulphates": "0.5",
  "alcohol": "8.8",
  "quality": "6"
}]
```
npm package: @liquid-carrot/data.pima-indians-diabetes
Description: A dataset template
Author: Liquid Carrot
Latest version: 1.0.2

# Pima Indians Diabetes Dataset

The Pima Indians Diabetes Dataset involves predicting the onset of diabetes within 5 years in Pima Indians given medical details.

It is a binary (2-class) classification problem. The number of observations for each class is not balanced. There are 768 observations with 8 input variables and 1 output variable. Missing values are believed to be encoded with zero values. The variable names are as follows:

1. Number of times pregnant.
2. Plasma glucose concentration a 2 hours in an oral glucose tolerance test.
3. Diastolic blood pressure (mm Hg).
4. Triceps skinfold thickness (mm).
5. 2-Hour serum insulin (mu U/ml).
6. Body mass index (weight in kg/(height in m)^2).
7. Diabetes pedigree function.
8. Age (years).
9. Class variable (0 or 1).

The baseline performance of predicting the most prevalent class is a classification accuracy of approximately 65%. Top results achieve a classification accuracy of approximately 77%.

A sample of the first 5 rows is listed below.

**CSV**

```csv
6,148,72,35,0,33.6,0.627,50,1
1,85,66,29,0,26.6,0.351,31,0
8,183,64,0,0,23.3,0.672,32,1
1,89,66,23,94,28.1,0.167,21,0
0,137,40,35,168,43.1,2.288,33,1
```

**JSON**

```json
[
  {
    "pregnancies": "6",
    "plasma glucose concentration": "148",
    "diastolic blood pressure": "72",
    "triceps skinfold thickness": "35",
    "insulin": "0",
    "body mass index": "33.6",
    "diabetes pedigree function": "0.627",
    "age": "50",
    "diabetic": "1"
  }, {
    "pregnancies": "1",
    "plasma glucose concentration": "85",
    "diastolic blood pressure": "66",
    "triceps skinfold thickness": "29",
    "insulin": "0",
    "body mass index": "26.6",
    "diabetes pedigree function": "0.351",
    "age": "31",
    "diabetic": "0"
  }, {
    "pregnancies": "8",
    "plasma glucose concentration": "183",
    "diastolic blood pressure": "64",
    "triceps skinfold thickness": "0",
    "insulin": "0",
    "body mass index": "23.3",
    "diabetes pedigree function": "0.672",
    "age": "32",
    "diabetic": "1"
  }, {
    "pregnancies": "1",
    "plasma glucose concentration": "89",
    "diastolic blood pressure": "66",
    "triceps skinfold thickness": "23",
    "insulin": "94",
    "body mass index": "28.1",
    "diabetes pedigree function": "0.167",
    "age": "21",
    "diabetic": "0"
  }, {
    "pregnancies": "0",
    "plasma glucose concentration": "137",
    "diastolic blood pressure": "40",
    "triceps skinfold thickness": "35",
    "insulin": "168",
    "body mass index": "43.1",
    "diabetes pedigree function": "2.288",
    "age": "33",
    "diabetic": "1"
  }
]
```
npm package: @liquid-js/extractor
Description: A tiny (~4KB) tool to extract DOM tree with styles and pseudo elements
Author: HitkoDev
Latest version: 0.1.2

# Extractor

[![GitHub license](https://img.shields.io/github/license/Liquid-JS/extractor.svg)](https://github.com/Liquid-JS/extractor/blob/master/LICENSE)
[![npm](https://img.shields.io/npm/dm/@liquid-js/extractor.svg)](https://www.npmjs.com/package/@liquid-js/extractor)
[![scope](https://img.shields.io/npm/v/@liquid-js/extractor.svg)](https://www.npmjs.com/package/@liquid-js/extractor)

A tiny (~4KB) tool to extract DOM tree with styles and pseudo elements.

## Installation

    npm install @liquid-js/extractor

## API Documentation

<https://liquid-js.github.io/extractor/>

## Usage

```js
import { serializeWithStyles } from '@liquid-js/extractor'

const element = document.getElementById('target-element')
const htmlCode = serializeWithStyles(element)
```

## License

[MIT License](https://github.com/Liquid-JS/extractor/blob/master/LICENSE)
npm package: @liquid-js/fragql
Description: Another GraphQL template literal.
Author: HitkoDev
Latest version: 1.1.1

# FraGQL

[![GitHub license](https://img.shields.io/github/license/Liquid-JS/fragql.svg)](https://github.com/Liquid-JS/fragql/blob/master/LICENSE)
[![npm](https://img.shields.io/npm/dm/@liquid-js/fragql.svg)](https://www.npmjs.com/package/@liquid-js/fragql)
[![scope](https://img.shields.io/npm/v/@liquid-js/fragql.svg)](https://www.npmjs.com/package/@liquid-js/fragql)

Another GraphQL template literal.

## Installation

    npm install @liquid-js/fragql

## API Documentation

<https://liquid-js.github.io/fragql/>

## Usage

### With fragments

```js
import { gql } from '@liquid-js/fragql'

const userBasic = gql`
  fragment userBasic on User {
    name
    lastname
  }
`

const query = gql`
  query user($id: String){
    user(id: $id){
      ...${userBasic}
    }
  }
`

console.log(query.toString())
```

Gives

```gql
query user($id: String) {
  user(id: $id) {
    ...userBasic
  }
}

fragment userBasic on User {
  name
  lastname
}
```

### Flatten fragments

```js
console.log(query.toString(true));
```

Gives

```gql
query user($id: String) {
  user(id: $id) {
    name
    lastname
  }
}
```

## Schema validation

FraGQL can validate operations against GQL schema. To use validation, you have to pass your schema as a string to `loadSchema` function.

### Validating agains GraphQL endpoint

The following example obtains GraphQL schema from `http://example.com/graphql` and validates `user` query against it.

Notice `userBasic` fragment and `user` query don't wait for the schema to load - upon calling `loadSchema`, all existing queries are validated against it.

```js
import { gql, loadSchema } from '@liquid-js/fragql'
import { buildClientSchema, getIntrospectionQuery } from 'graphql'

fetch('http://example.com/graphql', {
    method: 'POST',
    mode: 'cors',
    cache: 'no-cache',
    credentials: 'same-origin',
    headers: {
        'Content-Type': 'application/json; charset=utf-8'
    },
    redirect: 'follow',
    referrer: 'no-referrer',
    body: JSON.stringify({ query: getIntrospectionQuery() })
})
    .then((res) => res.json())
    .then((res) => buildClientSchema(res.data))
    .then((schema) => loadSchema(schema))
    .then((errors) => {
        if (errors.length) throw errors[0]
    })

const userBasic = gql`
  fragment userBasic on User {
    name
    lastname
  }
`

const query = gql`
  query user($id: String){
    user(id: $id){
      ...${userBasic}
    }
  }
`
```

## License

[MIT License](https://github.com/Liquid-JS/fragql/blob/master/LICENSE)
npm package: @liquid-js/gulp-fontcustom
Description: A gulp plugin to generate icon fonts with Fontcustom from SVG files.
Author: Johan Brook
Latest version: 0.1.3

# gulp-fontcustom

This is a [gulp](http://gulpjs.com/) plugin that takes a bunch of SVG files and converts them to font icon files with [Fontcustom](https://github.com/FontCustom/fontcustom/).

## Usage

```bash
npm install --save gulp-fontcustom
```
```javascript
var gulp = require('gulp'),
    fontcustom = require('gulp-fontcustom')

gulp.src("./icons")
.pipe(fontcustom({
  font_name: 'myfont',  // defaults to 'fontcustom',
  'css-selector': '.prefix-{{glyph}}'
}))
.pipe(gulp.dest("./results"))
```

The following files will be generated into the `results` directory:

```
myfont-preview.html
myfont.css
myfont.eot
myfont.ttf
myfont.svg
myfont.woff
```
The `fontcustom` function above takes an options object and uses the same keys as the Fontcustom CLI uses. Check out the [Fontcustom documentation](https://github.com/FontCustom/fontcustom/) for more info on all configuration options.

`gulp-fontcustom` will default to these options:

```javascript
no_hash: true,
force: true
```

The `--output` option for Fontcustom is set inside of `gulp-fontcustom` and will thus precede any configuration.

Note that `fontcustom` must be installed on the system beforehand. If not:

```bash
# On Mac
brew install fontforge eot-utils
gem install fontcustom
```

See the [Fontcustom docs](https://github.com/FontCustom/fontcustom/) for further instructions.

## Stuff to do

- Enable putting stylesheets/preview HTML in another destination
- Support all relevant configuration options in Fontcustom
- Better tests ...

## Similar plugins

If this isn't your cup of tea:

- [gulp-iconfont](https://github.com/nfroidure/gulp-iconfont)
- [gulp-svgicons2svgfont](https://github.com/nfroidure/gulp-svgicons2svgfont)

## License

MIT.
npm package: @liquid-js/palette
Description: Get colour palette from an image
Author: HitkoDev
Latest version: 0.1.3

# Palette

[![GitHub license](https://img.shields.io/github/license/Liquid-JS/palette.svg)](https://github.com/Liquid-JS/palette/blob/master/LICENSE)
[![npm](https://img.shields.io/npm/dm/@liquid-js/palette.svg)](https://www.npmjs.com/package/@liquid-js/palette)
[![scope](https://img.shields.io/npm/v/@liquid-js/palette.svg)](https://www.npmjs.com/package/@liquid-js/palette)

Get colour palette from an image.

## Installation

    npm install @liquid-js/palette

## API Documentation

<https://liquid-js.github.io/palette/>

## Usage

To obtain colours from an image, use `extractImageData` and `quantize` (note: `quantize` might take a long time to run depending on image size; consider running it asynchronously).

```ts
import { extractImageData, quantize } from '@liquid-js/palette'

const imageUrl = 'https://upload.wikimedia.org/wikipedia/commons/thumb/1/1e/Peace_Of_Nature_%28129019177%29.jpeg/640px-Peace_Of_Nature_%28129019177%29.jpeg'

const img = new Image()
img.crossOrigin = 'anonymous'
img.addEventListener('load', () => {
    const imageData = extractImageData(img)
    const colors = quantize(imageData)

    console.log(colors)
})
img.src = imageUrl
```

## License

[MIT License](https://github.com/Liquid-JS/palette/blob/master/LICENSE)
npm package: @liquid-js/qrcode-generator
Description: QR Code Generator implementation in JavaScript.
Author: HitkoDev
Latest version: 1.1.5

# QR Code Generator

[![GitHub license](https://img.shields.io/github/license/Liquid-JS/qrcode-generator.svg)](https://github.com/Liquid-JS/qrcode-generator/blob/master/LICENSE)
[![npm](https://img.shields.io/npm/dm/@liquid-js/qrcode-generator.svg)](https://www.npmjs.com/package/@liquid-js/qrcode-generator)
[![scope](https://img.shields.io/npm/v/@liquid-js/qrcode-generator.svg)](https://www.npmjs.com/package/@liquid-js/qrcode-generator)

JavaScript library for generating QR codes.

## Installation

    npm install @liquid-js/qrcode-generator

## API Documentation

<https://liquid-js.github.io/qrcode-generator/>

## Usage

### Browser

```HTML
<!doctype html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <title>QR Code Generator</title>
</head>

<body>
    <div id="placeHolder"></div>
    <script type="module">
        import { QRCode } from 'https://unpkg.com/@liquid-js/qrcode-generator/lib/qr-code.js'

        const typeNumber = 4
        const errorCorrectionLevel = 'L'
        const qr = new QRCode(typeNumber, errorCorrectionLevel)
        qr.addData('Hi!')
        qr.make()
        document.getElementById('placeHolder').innerHTML = qr.createImgTag()
    </script>
</body>

</html>
```

### Node

```js
import { QRCode } from '@liquid-js/qrcode-generator'

const typeNumber = 4
const errorCorrectionLevel = 'L'
const qr = new QRCode(typeNumber, errorCorrectionLevel)
qr.addData('Hi!')
qr.make()

console.log(qr.createASCII())
```

## License

[MIT License](https://github.com/Liquid-JS/qrcode-generator/blob/master/LICENSE)

* * *

This implementation is based on JIS X 0510:1999.

The word 'QR Code' is registered trademark of DENSO WAVE INCORPORATED
<br/><http://www.denso-wave.com/qrcode/faqpatent-e.html>