open-index/open-npm huggingface dataset:
npm package: @locational/application-registry-validation
Description: 0. Test for empty function! 1. Single function `config_is_valid` or similar 2. Function return `true` to start 3. Deploy to NPM
Latest version: 2.4.7

# Application Registry Validation


[ ![Codeship Status for locational/application-registry-validation](https://app.codeship.com/projects/c77f92e0-3031-0136-d8f8-0a3261184ed0/status?branch=master)](https://app.codeship.com/projects/288543)
[![npm version](https://badge.fury.io/js/%40locational%2Fapplication-registry-validation.svg)](https://badge.fury.io/js/%40locational%2Fapplication-registry-validation)


Validate a douma configuration.

## Get started 

```bash
# install 
npm i @locational/application-registry-validation
```

```js
// import
import {validate, errors} from '@locational/application-registry-validation'
```


## API

#### validate(configuration, ?geodata)

**Arguments**

`configuration (Object): Locational configuration to validate`

`geodata (Object): Optional, a geodata object`

**Returns**

`Boolean : Whether or not the configuration is valid` 




#### errors(configuration, ?geodata)

**Arguments**

`configuration (Object): Locational configuration to validate`

`geodata (Object): Optional, a geodata object`

**Returns**

`Array : Objects that describe the errors`




#### Geodata object

If the geodata object is passed to either functions, extra validations that require geodata will be run.
If it is not passed, a warning will be printed. 

```json
{
  "districts": {<geojson feature collection>},
  "villages": {<geojson feature collection>}
}
```



## Example

```js
const {validate, errors} = require('@locational/application-registry-validation')

const configuration = {...}

const configuration_valid  = validate(configuration)
if (!configuration_valid) {
  // invalid configuration
  const configuration_errors =  errors(configuration)
  console.error(configuration_errors)
} 
// no problems

```
npm package: @locational/geodata-support
Description: Library to validate geodata
Latest version: 0.0.11

# geodata-validation

Library to validate geodata

## Updating geodata

Read more on the [wiki entry](https://github.com/locational/geodata-support/wiki/Updating-geodata) 

## Objectives

Detailed in https://docs.google.com/document/d/1Oo3QovNOI6GTnO283-_-IaVa9U3MvF8V18lJy8twEW8/edit?ts=5b1526ec#