# glider-lib

> Functional library for TestGlider

Latest version **0.1.1** (published 2016-10-15) · UNLICENSED license · 0 weekly downloads

## Install

```sh
npm install glider-lib
pnpm add glider-lib
yarn add glider-lib
bun add glider-lib
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2016-10-15 |
| First published | 2016-10-14 |
| Weekly downloads | 0 |
| License | UNLICENSED |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Mark Beukers |
| Maintainers | shard |

## Links

- npm: https://www.npmjs.com/package/glider-lib
- npm.io page: https://npm.io/package/glider-lib

## Dependencies (3)

- [ramda](https://npm.io/package/ramda.md) ^0.22.1
- [sanctuary](https://npm.io/package/sanctuary.md) ^0.11.1
- [sanctuary-def](https://npm.io/package/sanctuary-def.md) ^0.6.0

## Recent versions

- 0.1.1 (latest) — 2016-10-15
- 0.1.0 — 2016-10-14

## README

# Glider Library

![stability-wip](https://img.shields.io/badge/stability-work_in_progress-lightgrey.svg)

GliderLib is a collection of functions built using [Ramda](http://ramdajs.com) and SanctuaryJS that make it easier and safer to query and manipulate data related to [TestGlider](http://testglider.com)

All functions within GliderLib are attached to the Glider (G) object and returned when loaded.

## Getting Started

To start using GliderLib all you to do is:

```javascript
yarn add glider-lib
```

The in the Javascript:

```javascript
const G = require('glider-lib')(true) // true for typechecking

const allIssuesinModules = R.compose( G.getIssues, G.getResults, G.getModules )(TestCycle)

const newPage = G.newPage( {id: 4, name: 'Homepage'} )
const newTestDoc = G.putPage(newPage)
```

## Function groups (Modules):

### NEW
Used for constructing new types out of plain objects
### IN
Includes a set of composable lens functions for scoping into data
### GET
Functions for grabbing objects out of other objects
### SET
A setter will overwrite a field with the provided data
### FIND
Find functions are build upon R.find and are used for filtering
### PUT
A put function will either replace when another unique record is found or add it to the list
### REMOVE
functions for removing objects
### LIST
functions for breaking down data into compact lists
### SORT
Sorting functions
### LINK
LINK functions are used for attaching related data to another record

## Docs

The following section is autogenerated using santcuary-spec functions.

## AutoDoc

### Types (?)

### Functions (**36/72**)

- **newIssue** [ *Object* -> *glider/Issue* ]
- **newResult** [ *Object* -> *glider/Result* ]
- **newModule** [ *Object* -> *glider/Module* ]
- **newPage** [ *Object* -> *glider/Page* ]
- **newProject** [ *Object* -> *glider/Project* ]
- **newTestCycle** [ *Object* -> *glider/TestCycle* ]
- **inModules** [ *Function* -> *Function* ]
- **inPages** [ *Function* -> *Function* ]
- **inResults** [ *Function* -> *Function* ]
- **inIssues** [ *Function* -> *Function* ]
- **onIfIs** [ *String* -> *String* -> *String* -> *Function* ]
- **onStatusIfChanged** [ *Function* -> *Function* ]
- **onStatusIfChanged** [ *Function* -> *Function* ]
- **isModule** [ *glider/Sector* -> *Boolean* ]
- **isPage** [ *glider/Sector* -> *Boolean* ]
- **getModules** [ *glider/Document* -> *Array* ]
- **getPages** [ *glider/Document* -> *Array* ]
- **getSectors** [ *glider/Document* -> *Array* ]
- **getResults** [ *glider/Sector* -> *Array* ]
- **getIssues** [ *glider/Result* -> *Array* ]
- **getStatus** [ *Object* -> *String* ]
- **getIndex** [ *sanctuary-def/Any* -> *sanctuary-def/Any* -> *Number* ]
- **getModule** [ *glider/Module* -> *glider/Document* -> *glider/Module* ]
- **getPage** [ *glider/Page* -> *glider/Document* -> *glider/Page* ]
- **getSector** [ *glider/Sector* -> *glider/Document* -> *glider/Sector* ]
- **getResult** [ *glider/Result* -> *glider/Sector* -> *glider/Result* ]
- **getIssue** [ *glider/Issue* -> *glider/Result* -> *glider/Issue* ]
- **putModule** [ *glider/Module* -> *glider/Document* -> *glider/Document* ]
- **putPage** [ *glider/Page* -> *glider/Document* -> *glider/Document* ]
- **putResult** [ *glider/Result* -> *glider/Document* -> *glider/Document* ]
- **putResult** [ *glider/Issue* -> *glider/Document* -> *glider/Document* ]
- **removeModule** [ *glider/Module* -> *glider/Document* -> *glider/Document* ]
- **removePage** [ *glider/Page* -> *glider/Document* -> *glider/Document* ]
- **removeSector** [ *glider/Sector* -> *glider/Document* -> *glider/Document* ]
- **removeResult** [ *glider/Result* -> *glider/Document* -> *glider/Document* ]
- **removeIssue** [ *glider/Issue* -> *glider/Document* -> *glider/Document* ]

---
_Source: https://npm.io/package/glider-lib · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
